- java.lang.Object
-
- org.xnio.Property
-
- All Implemented Interfaces:
java.io.Serializable
public final class Property extends java.lang.Object implements java.io.SerializableAn immutable property represented by a key and value.- Author:
- Darran Lofthouse
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Determine if this Property equals another Property.booleanequals(Property other)Determine if this Property equals another Property.java.lang.StringgetKey()Get the key of this key/value Property.java.lang.ObjectgetValue()Get the value of this key/value Property.java.lang.StringgetValue$$bridger()Get the value of this key/value Property.inthashCode()Get the hash code for this Property.static Propertyof(java.lang.String key, java.lang.Object value)Create a new property for the specified key and value.static Propertyof(java.lang.String key, java.lang.String value)Create a new property for the specified key and value.java.lang.StringtoString()Get theStringrepresentation of this property.
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Get the key of this key/value Property.- Returns:
- the key.
-
getValue
public java.lang.Object getValue()
Get the value of this key/value Property.- Returns:
- the value.
-
getValue$$bridger
public java.lang.String getValue$$bridger()
Get the value of this key/value Property.- Returns:
- the value.
-
toString
public java.lang.String toString()
Get theStringrepresentation of this property.- Overrides:
toStringin classjava.lang.Object- Returns:
- the
Stringrepresentation of this property.
-
hashCode
public int hashCode()
Get the hash code for this Property.- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hash code.
-
equals
public boolean equals(java.lang.Object obj)
Determine if this Property equals another Property.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the other Property to compare.- Returns:
- true if the two Properties are equal.
-
equals
public boolean equals(Property other)
Determine if this Property equals another Property.- Parameters:
other- the other Property to compare.- Returns:
- true if the two Properties are equal.
-
of
public static Property of(java.lang.String key, java.lang.Object value)
Create a new property for the specified key and value.- Parameters:
key- the key for new Propertyvalue- the value for the new Property- Returns:
- the newly created Property
-
of
public static Property of(java.lang.String key, java.lang.String value)
Create a new property for the specified key and value.- Parameters:
key- the key for new Propertyvalue- the value for the new Property- Returns:
- the newly created Property
-
-