|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xnio.Property
public final class Property
An immutable property represented by a key and value.
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determine if this Property equals another Property. |
boolean |
equals(Property other)
Determine if this Property equals another Property. |
String |
getKey()
Get the key of this key/value Property. |
String |
getValue()
Get the value of this key/value Property. |
int |
hashCode()
Get the hash code for this Property. |
static Property |
of(String key,
String value)
Create a new property for the specified key and value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getKey()
public String getValue()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the other Property to compare.
public boolean equals(Property other)
other
- the other Property to compare.
public static Property of(String key, String value)
key
- the key for new Propertyvalue
- the value for the new Property
|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |