T - the underlying typepublic class DefaultAttribute<T> extends Object implements Attribute, Serializable
| Constructor and Description |
|---|
DefaultAttribute(T value,
AttributeType type)
Create a new attribute
|
| Modifier and Type | Method and Description |
|---|---|
static Attribute |
createAttribute(Boolean value)
Create a boolean attribute
|
static Attribute |
createAttribute(Double value)
Create a double attribute
|
static Attribute |
createAttribute(Float value)
Create a float attribute
|
static Attribute |
createAttribute(Integer value)
Create an integer attribute
|
static Attribute |
createAttribute(Long value)
Create a long attribute
|
static Attribute |
createAttribute(String value)
Create a string attribute
|
boolean |
equals(Object obj) |
AttributeType |
getType()
Get the type of the attribute
|
String |
getValue()
Get the string value of the attribute
|
int |
hashCode() |
String |
toString() |
public DefaultAttribute(T value, AttributeType type)
value - the valuetype - the typepublic String getValue()
public AttributeType getType()
public static Attribute createAttribute(Boolean value)
value - the valuepublic static Attribute createAttribute(Integer value)
value - the valuepublic static Attribute createAttribute(Long value)
value - the valuepublic static Attribute createAttribute(Float value)
value - the valuepublic static Attribute createAttribute(Double value)
value - the valuepublic static Attribute createAttribute(String value)
value - the valueCopyright © 2018. All rights reserved.