Class 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 Detail

      • GroupedKey

        public GroupedKey​(K id)
    • Method Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object