Top Description Fields Constructors Methods
org.xnio

public final Class Property

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable

An immutable property represented by a key and value.
Author
Darran Lofthouse

Field Summary

Modifier and TypeField and Description
private final String
private static final long
private final Object

Constructor Summary

AccessConstructor and Description
private
Property(final String key, final Object value)

private
Property(final String key, final String value)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the two Properties are equal.
equals
(Object
the other Property to compare.
obj
)

Overrides java.lang.Object.equals.

Determine if this Property equals another Property.

public boolean

Returns:

true if the two Properties are equal.
equals
(Property
the other Property to compare.
other
)

Determine if this Property equals another Property.

public String

Returns:

the key.
getKey
()

Get the key of this key/value Property.

public Object

Returns:

the value.
getValue
()

Get the value of this key/value Property.

public String

Returns:

the value.
getValue$$bridger
()

Get the value of this key/value Property.

public int

Returns:

the hash code.
hashCode
()

Overrides java.lang.Object.hashCode.

Get the hash code for this Property.

public static Property

Returns:

the newly created Property
of
(final String
the key for new Property
key
,
final Object
the value for the new Property
value
)

Create a new property for the specified key and value.

public static Property

Returns:

the newly created Property
of
(final String
the key for new Property
key
,
final String
the value for the new Property
value
)

Create a new property for the specified key and value.

public String

Returns:

the String representation of this property.
toString
()

Overrides java.lang.Object.toString.

Get the String representation of this property.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

keyback to summary
private final String key
serialVersionUIDback to summary
private static final long serialVersionUID
valueback to summary
private final Object value

Constructor Detail

Propertyback to summary
private Property(final String key, final Object value)
Propertyback to summary
private Property(final String key, final String value)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Determine if this Property equals another Property.

Parameters
obj:Object

the other Property to compare.

Returns:boolean

true if the two Properties are equal.

Annotations
@Override
equalsback to summary
public boolean equals(Property other)

Determine if this Property equals another Property.

Parameters
other:Property

the other Property to compare.

Returns:boolean

true if the two Properties are equal.

getKeyback to summary
public String getKey()

Get the key of this key/value Property.

Returns:String

the key.

getValueback to summary
public Object getValue()

Get the value of this key/value Property.

Returns:Object

the value.

getValue$$bridgerback to summary
public String getValue$$bridger()

Get the value of this key/value Property.

Returns:String

the value.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Get the hash code for this Property.

Returns:int

the hash code.

Annotations
@Override
ofback to summary
public static Property of(final String key, final Object value)

Create a new property for the specified key and value.

Parameters
key:String

the key for new Property

value:Object

the value for the new Property

Returns:Property

the newly created Property

ofback to summary
public static Property of(final String key, final String value)

Create a new property for the specified key and value.

Parameters
key:String

the key for new Property

value:String

the value for the new Property

Returns:Property

the newly created Property

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Get the String representation of this property.

Returns:String

the String representation of this property.

Annotations
@Override