Package kong.unirest.core
Class CacheManager.HashKey
java.lang.Object
kong.unirest.core.CacheManager.HashKey
- All Implemented Interfaces:
Cache.Key
- Enclosing class:
CacheManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
hash
private final int hash -
time
-
-
Constructor Details
-
HashKey
HashKey(HttpRequest request, Boolean isAsync, Class<?> responseType) -
HashKey
HashKey(int hash, Instant time)
-
-
Method Details
-
equals
-
hashCode
public int hashCode()Description copied from interface:Cache.Key
As much as is reasonably practical, the hashCode method defined by classObject
does return distinct integers for distinct objects. (The hashCode may or may not be implemented as some function of an object's memory address at some point in time.) -
getTime
Description copied from interface:Cache.Key
The time the key was created to be used by purging functions
-