|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.collections.Pair
This class represents the pair in key-value list. You will rarely need to create the Pair explicitly. Use appropriate add method of the list.
Constructor Summary | |
Pair()
|
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
byte[] |
getBinaryValue()
Return binary value of the Pair or null if the value is not a binary data. |
java.lang.Integer |
getIntValue()
Return int value. |
java.lang.String |
getStringKey()
Return the key as a String |
java.lang.String |
getStringValue()
Return string value of the Pair or null if the value is not a string. |
java.lang.Object |
getValue()
|
ValueType |
getValueType()
Return the type of value that is stored in this Pair . |
int |
hashCode()
|
void |
setBinaryValue(byte[] data)
Set value of this Pair to some binary data |
void |
setIntValue(int i)
Set value of this Pair to an integer |
void |
setIntValue(java.lang.Integer i)
Set value of this Pair to an integer |
void |
setStringValue(java.lang.String val)
Set value of this Pair to a String |
void |
setUTF16Value(java.lang.String val)
Set value of this Pair to UTF-16 String. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Pair()
Method Detail |
public java.lang.String getStringKey()
public java.lang.Integer getIntValue()
public void setIntValue(int i)
i
- new value (integer)public void setIntValue(java.lang.Integer i)
i
- new value (integer)public byte[] getBinaryValue()
public java.lang.Object getValue()
public void setBinaryValue(byte[] data)
data
- new value (binary data)
java.lang.NullPointerException
- if data is nullpublic java.lang.String getStringValue()
public void setStringValue(java.lang.String val)
val
- new value (String)
java.lang.NullPointerException
- if val is nullpublic void setUTF16Value(java.lang.String val)
getStringValue() method
}
The value set with this method will be serialized differently than the value
set with setStringValue(String)
.
val
-
java.lang.NullPointerException
- if val is nullpublic ValueType getValueType()
Pair
.
For supported types please consult documentation of the List you use.
Pair
.public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |