com.sun.enterprise.admin.util
Class TokenValue
java.lang.Object
com.sun.enterprise.admin.util.TokenValue
- All Implemented Interfaces:
- Comparable
public final class TokenValue
- extends Object
- implements Comparable
- Author:
- kedar
token
public final String token
value
public final String value
delimiter
public final String delimiter
delimitedToken
public final String delimitedToken
DEFAULT_DELIMITER
public static final String DEFAULT_DELIMITER
- See Also:
- Constant Field Values
TokenValue
public TokenValue(String token,
String value)
- Creates a new instance of TokenValue - with default delimiter.
Also note that if the value contains any '\' characters, then these
are appended to by another '\' character to work around the Java
byte code interpretation. Note that none of the arguments can be null.
The value of delimiter is given by DEFAULT_DELIMITER.
- Parameters:
token - a String that is the name of the token in this TokenValue.value - a String that is the value of the token.
- Throws:
IllegalArgumentException - in case of null values.- See Also:
TokenValue(java.lang.String, java.lang.String, java.lang.String),
DEFAULT_DELIMITER
TokenValue
public TokenValue(String token,
String value,
String delimiter)
TokenValue
public TokenValue(TokenValue other)
compareTo
public int compareTo(Object other)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.