T - Type of the id (Integer, Long, String etc)U - Class of the object to be stored in the cachepublic class StravaCacheKey<T,U> extends Object
Key for cache, to assist with separation of cached elements which are related to different tokens
| Constructor and Description |
|---|
StravaCacheKey(T id,
Token token,
Class<U> class1) |
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public T getId()
public Token getToken()
public int hashCode()
hashCode in class ObjectObject.hashCode()public void setId(T id)
id - the id to setpublic void setToken(Token token)
token - the token to setpublic String toString()
toString in class ObjectObject.toString()Copyright © 2016 Dan Shannon. All rights reserved.