Class CacheKey<I>

java.lang.Object
org.wildfly.clustering.cache.infinispan.CacheKey<I>
Type Parameters:
I - the identifier type of this cache key.
All Implemented Interfaces:
org.wildfly.clustering.cache.Key<I>

public class CacheKey<I> extends Object implements org.wildfly.clustering.cache.Key<I>
An base implementation for Infinispan cache keys.
Author:
Paul Ferraro
  • Constructor Details

    • CacheKey

      public CacheKey(I id)
      Creates a cache key using the specified identifier.
      Parameters:
      id - the identifier of this key.
  • Method Details

    • getId

      public I getId()
      Specified by:
      getId in interface org.wildfly.clustering.cache.Key<I>
    • 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