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