Package org.onebusaway.users.model
Class UserIndexKey
- java.lang.Object
-
- org.onebusaway.users.model.UserIndexKey
-
- All Implemented Interfaces:
Serializable,Comparable<UserIndexKey>
@Embeddable public class UserIndexKey extends Object implements Serializable, Comparable<UserIndexKey>
A type+value tuple that uniquely identifies aUserIndexobject. SeeUserIndexTypesfor common user index type values.- Author:
- bdferris
- See Also:
UserIndex,UserIndexTypes, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserIndexKey()UserIndexKey(String type, String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(UserIndexKey o)ComparatorInterfacebooleanequals(Object obj)StringgetType()StringgetValue()inthashCode()ObjectInterfacestatic UserIndexKeyparseString(String userIndexKey)StringtoString()It's important that this method not be changed, since the type_value form is used in serialization / de-serialization
-
-
-
Method Detail
-
parseString
public static UserIndexKey parseString(String userIndexKey)
-
getType
public String getType()
-
getValue
public String getValue()
-
compareTo
public int compareTo(UserIndexKey o)
ComparatorInterface- Specified by:
compareToin interfaceComparable<UserIndexKey>
-
-