public class CustomAttribute<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomAttribute.BooleanAttribute |
static class |
CustomAttribute.DoubleAttribute |
static class |
CustomAttribute.FloatAttribute |
static class |
CustomAttribute.IntegerAttribute |
static class |
CustomAttribute.LongAttribute |
static class |
CustomAttribute.StringAttribute |
| Constructor and Description |
|---|
CustomAttribute(java.lang.String name,
T value,
java.lang.Class<T> classt) |
| Modifier and Type | Method and Description |
|---|---|
<C> C |
as(java.lang.Class<C> c) |
boolean |
booleanValue() |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
java.lang.String |
getName() |
T |
getValue() |
java.lang.Class<T> |
getValueClass() |
int |
hashCode() |
int |
integerValue() |
long |
longValue() |
static CustomAttribute.BooleanAttribute |
newBooleanAttribute(java.lang.String name,
boolean value) |
static CustomAttribute.DoubleAttribute |
newDoubleAttribute(java.lang.String name,
double value) |
static CustomAttribute.FloatAttribute |
newFloatAttribute(java.lang.String name,
float value) |
static CustomAttribute.IntegerAttribute |
newIntegerAttribute(java.lang.String name,
int value) |
static CustomAttribute.LongAttribute |
newLongAttribute(java.lang.String name,
long value) |
static CustomAttribute.StringAttribute |
newStringAttribute(java.lang.String name,
java.lang.String value) |
void |
setName(java.lang.String name) |
void |
setValue(T value) |
java.lang.String |
textValue() |
java.lang.String |
toString() |
public static CustomAttribute.StringAttribute newStringAttribute(java.lang.String name, java.lang.String value)
public static CustomAttribute.BooleanAttribute newBooleanAttribute(java.lang.String name, boolean value)
public static CustomAttribute.DoubleAttribute newDoubleAttribute(java.lang.String name, double value)
public static CustomAttribute.LongAttribute newLongAttribute(java.lang.String name, long value)
public static CustomAttribute.IntegerAttribute newIntegerAttribute(java.lang.String name, int value)
public static CustomAttribute.FloatAttribute newFloatAttribute(java.lang.String name, float value)
public java.lang.Class<T> getValueClass()
public java.lang.String getName()
public void setName(java.lang.String name)
public T getValue()
public void setValue(T value)
public <C> C as(java.lang.Class<C> c)
public long longValue()
public java.lang.String textValue()
public boolean booleanValue()
public float floatValue()
public double doubleValue()
public int integerValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object