Class GroupedKey<K>

java.lang.Object
org.wildfly.clustering.ee.infinispan.GroupedKey<K>
All Implemented Interfaces:
Key<K>, KeyGroup<K>

public class GroupedKey<K> extends Object implements Key<K>, KeyGroup<K>
An embedded cache key supporting group co-location.
Author:
Paul Ferraro
  • Constructor Details

    • GroupedKey

      public GroupedKey(K id)
  • Method Details

    • getId

      public K getId()
      Returns the value of this key.
      Specified by:
      getId in interface Key<K>
      Specified by:
      getId in interface KeyGroup<K>
      Returns:
      the key value
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object