- java.lang.Object
-
- org.xnio.Property
-
- All Implemented Interfaces:
java.io.Serializable
public final class Property extends java.lang.Object implements java.io.Serializable
An 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 boolean
equals(java.lang.Object obj)
Determine if this Property equals another Property.boolean
equals(Property other)
Determine if this Property equals another Property.java.lang.String
getKey()
Get the key of this key/value Property.java.lang.Object
getValue()
Get the value of this key/value Property.java.lang.String
getValue$$bridger()
Get the value of this key/value Property.int
hashCode()
Get the hash code for this Property.static Property
of(java.lang.String key, java.lang.Object value)
Create a new property for the specified key and value.static Property
of(java.lang.String key, java.lang.String value)
Create a new property for the specified key and value.java.lang.String
toString()
Get theString
representation 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 theString
representation of this property.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the
String
representation of this property.
-
hashCode
public int hashCode()
Get the hash code for this Property.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash code.
-
equals
public boolean equals(java.lang.Object obj)
Determine if this Property equals another Property.- Overrides:
equals
in 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
-
-