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 Summary
Modifier 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.boolean
int
hashCode()
-
Method Details
-
create
Returns a key based on the value's class and an identifier that uniquely identify the value. The identifier needs to implementequals()
andhashCode()
. -
create
Returns a key based on the value's class and a set of identifiers that uniquely identify the value. Identifiers need to implementequals()
andhashCode()
. -
hashCode
public int hashCode() -
equals
-