Package org.linuxforhealth.fhir.cache
Class CacheKey
- java.lang.Object
 - 
- org.linuxforhealth.fhir.cache.CacheKey
 
 
- 
public class CacheKey extends java.lang.ObjectA 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 booleanequals(java.lang.Object obj)inthashCode()static CacheKeykey(java.lang.Object... values)A factory method for creating CacheKey instances from one or more valuesjava.lang.StringtoString()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:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin 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
 
 
 - 
 
 -