org.onebusaway.users.model
Class UserIndexKey

java.lang.Object
  extended by 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

Constructor Summary
UserIndexKey()
           
UserIndexKey(String type, String value)
           
 
Method Summary
 int compareTo(UserIndexKey o)
          Comparator Interface
 boolean equals(Object obj)
           
 String getType()
           
 String getValue()
           
 int hashCode()
          Object Interface
static UserIndexKey parseString(String userIndexKey)
           
 String toString()
          It's important that this method not be changed, since the type_value form is used in serialization / de-serialization
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserIndexKey

public UserIndexKey()

UserIndexKey

public UserIndexKey(String type,
                    String value)
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.