Package com.google.gerrit.server.cache
Class PerThreadCache.Key<T>
java.lang.Object
com.google.gerrit.server.cache.PerThreadCache.Key<T>
- Enclosing class:
- PerThreadCache
Unique key for key-value mappings stored in PerThreadCache. The key is based on the value's
 class and a list of identifiers that in combination uniquely set the object apart form others
 of the same class.
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> PerThreadCache.Key<T>Returns a key based on the value's class and an identifier that uniquely identify the value.static <T> PerThreadCache.Key<T>Returns a key based on the value's class and a set of identifiers that uniquely identify the value.booleaninthashCode()
- 
Method Details- 
createReturns a key based on the value's class and an identifier that uniquely identify the value. The identifier needs to implementequals()andhashCode().
- 
createReturns a key based on the value's class and a set of identifiers that uniquely identify the value. Identifiers need to implementequals()andhashCode().
- 
hashCodepublic int hashCode()
- 
equals
 
-