org.onebusaway.users.model
Class UserIndexKey
java.lang.Object
org.onebusaway.users.model.UserIndexKey
- All Implemented Interfaces:
- Serializable, Comparable<UserIndexKey>
public class UserIndexKey
- extends Object
- implements Serializable, Comparable<UserIndexKey>
A type+value tuple that uniquely identifies a UserIndex
object. See
UserIndexTypes
for common user index type values.
- Author:
- bdferris
- See Also:
UserIndex
,
UserIndexTypes
,
Serialized Form
UserIndexKey
public UserIndexKey()
UserIndexKey
public UserIndexKey(String type,
String value)
parseString
public static UserIndexKey parseString(String userIndexKey)
getType
public String getType()
getValue
public String getValue()
compareTo
public int compareTo(UserIndexKey o)
Comparator
Interface
- Specified by:
compareTo
in interface Comparable<UserIndexKey>
hashCode
public int hashCode()
Object
Interface
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- It's important that this method not be changed, since the type_value form
is used in serialization / de-serialization
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.