org.springframework.cache.interceptor

## Class SimpleKey

- java.lang.Object
- - org.springframework.cache.interceptor.SimpleKey

- All Implemented Interfaces:
    Serializable

      public final class SimpleKey
      extends Object
      implements Serializable

  A simple key as returned from the `SimpleKeyGenerator`.
  Since:
    4.0
  Author:
    Phillip Webb
  See Also:
    `SimpleKeyGenerator`, Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static SimpleKey` | `EMPTY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleKey(Object... elements)` Create a new `SimpleKey` instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### EMPTY

          public static final SimpleKey EMPTY

  - ### Constructor Detail

    - #### SimpleKey

          public SimpleKey(Object... elements)

      Create a new `SimpleKey` instance.
      Parameters:
        `elements` - the elements of the key

  - ### Method Detail

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`