Package org.xnio
Class Property
java.lang.Object
org.xnio.Property
- All Implemented Interfaces:
Serializable
An immutable property represented by a key and value.
- Author:
- Darran Lofthouse
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if this Property equals another Property.boolean
Determine if this Property equals another Property.getKey()
Get the key of this key/value Property.getValue()
Get the value of this key/value Property.Get the value of this key/value Property.int
hashCode()
Get the hash code for this Property.static Property
Create a new property for the specified key and value.static Property
Create a new property for the specified key and value.toString()
Get theString
representation of this property.
-
Method Details
-
getKey
Get the key of this key/value Property.- Returns:
- the key.
-
getValue
Get the value of this key/value Property.- Returns:
- the value.
-
getValue$$bridger
Get the value of this key/value Property.- Returns:
- the value.
-
toString
Get theString
representation of this property. -
hashCode
public int hashCode()Get the hash code for this Property. -
equals
Determine if this Property equals another Property. -
equals
Determine if this Property equals another Property.- Parameters:
other
- the other Property to compare.- Returns:
- true if the two Properties are equal.
-
of
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
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
-