com.sun.enterprise.admin.util
Class TokenValue

java.lang.Object
  extended by com.sun.enterprise.admin.util.TokenValue
All Implemented Interfaces:
Comparable

public final class TokenValue
extends Object
implements Comparable

Author:
kedar

Field Summary
static String DEFAULT_DELIMITER
           
 String delimitedToken
           
 String delimiter
           
 String token
           
 String value
           
 
Constructor Summary
TokenValue(String token, String value)
          Creates a new instance of TokenValue - with default delimiter.
TokenValue(String token, String value, String delimiter)
           
TokenValue(TokenValue other)
           
 
Method Summary
 int compareTo(Object other)
           
 boolean equals(Object other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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 GlassFish Community. All Rights Reserved.