T - the type of the value keyed off of this ExchangePropertypublic final class ExchangeProperty<T> extends Object
Exchange.
Instances of this class are created via the static create(String, String, Class) method.
| Modifier and Type | Method and Description |
|---|---|
static <T> ExchangeProperty<T> |
create(String namespace,
String identifier,
Class<T> type)
Creates a new
ExchangeProperty. |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this property.
|
String |
getIdentifier() |
String |
getKey()
Retrieves a unique key for this property, which is a concatenation of the namespace and identifier, in the form:
|
String |
getNamespace() |
Class<T> |
getType() |
int |
hashCode() |
String |
toString() |
public String getNamespace()
public String getIdentifier()
public String getKey()
[namespace]:[identifier]
public boolean equals(Object o)
Two instances of ExchangeProperty are considered equal if they have the same namespace and identifier, regardless of their type (as in getType()). This allows differently typed properties to
refer to the same value, assuming their types are compatible (one is derived from the other).
equals in class Objecto - the object with which to compareExchangeProperty and has the same namespace and identifier as this onepublic static <T> ExchangeProperty<T> create(String namespace, String identifier, Class<T> type)
ExchangeProperty.
Each property is created with a namespace and an identifier. The namespace is used to group
related properties and to avoid naming collisions; it is typically a reverse domain name. The identifier is a
unique value within the given namespace. Any leading/trailing whitespace will be removed/ignored from both the
namespace and identifier.
T - the value typenamespace - the property namespace (typically a reverse domain name, such as 'com.example.group')identifier - the property identifier, which must be unique within the given namespacetype - the class of the value typeIllegalArgumentException - if the namespace or identifier is blank/emptyCopyright 2023 Ping Identity Corp. All rights reserved.