Package org.linuxforhealth.fhir.cache
Class CacheKey
- java.lang.Object
-
- org.linuxforhealth.fhir.cache.CacheKey
-
public class CacheKey extends java.lang.Object
A general purpose cache key class that represents a composite key using an array of values
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
static CacheKey
key(java.lang.Object... values)
A factory method for creating CacheKey instances from one or more valuesjava.lang.String
toString()
java.lang.Object[]
values()
Get a copy of the values array used by this cache key.
-
-
-
Method Detail
-
values
public java.lang.Object[] values()
Get a copy of the values array used by this cache key.- Returns:
- a copy of the values array used by this cache key
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
key
public static CacheKey key(java.lang.Object... values)
A factory method for creating CacheKey instances from one or more values- Parameters:
values
- the values- Returns:
- the CacheKey instance
-
-