Package org.onebusaway.container.model
Class IdentityBean<T extends Serializable>
- java.lang.Object
-
- org.onebusaway.container.model.IdentityBean<T>
-
- All Implemented Interfaces:
Serializable
public abstract class IdentityBean<T extends Serializable> extends Object implements Serializable
Convenience base class for objects that have an id property and whose object equality is determined by that identi Defines abstract methods for getting and setting the objects id while also defineequals(Object)andhashCode()based on the id value. Additionally, defines aCacheableKeykey strategy based on the object id when the object is used in as an argument in a method annotated withCacheable.- Author:
- bdferris
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentityBean()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)abstract TgetId()inthashCode()abstract voidsetId(T id)
-