Class<T> when T is a generic. To work around this problem,
simply create an interface that extends the generic type
(you are programming to interfaces, right?).
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static List | |
| private Class | |
| private T | |
| private NullaryFunction | initializer
References Deprecated
NullaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Attribute(Class<T> cls, String name, NullaryFunction<T> initializer)
References Deprecated
NullaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| public static Attribute | |
| public T | |
| public static Set | |
| public int | |
| public boolean | |
| public String | |
| private static synchronized int | |
| public static int | |
| public void | |
| public String | |
| public Class |
| attributeIndex | back to summary |
|---|---|
| private int attributeIndex | |
| attributes | back to summary |
|---|---|
| private static List<Attribute<?>> attributes | |
| cls | back to summary |
|---|---|
| private Class<T> cls | |
| defaultValue | back to summary |
|---|---|
| private T defaultValue | |
| initializer | back to summary |
|---|---|
| private NullaryFunction<T> initializer
References Deprecated
See corresponding docs for further information. | |
| name | back to summary |
|---|---|
| private String name | |
| Attribute | back to summary |
|---|---|
| public Attribute(Class<T> cls, String name, T defaultValue) | |
| Attribute | back to summary |
|---|---|
| public Attribute(Class<T> cls, String name, NullaryFunction<T> initializer)
References Deprecated
See corresponding docs for further information. | |
| get | back to summary |
|---|---|
| public static Attribute | |
| get | back to summary |
|---|---|
| public T get(AttributedObject node) | |
| getAttributes | back to summary |
|---|---|
| public static Set | |
| index | back to summary |
|---|---|
| public int index() | |
| isSet | back to summary |
|---|---|
| public boolean isSet(AttributedObject node) | |
| name | back to summary |
|---|---|
| public String name() | |
| next | back to summary |
|---|---|
| private static synchronized int next(Attribute<?> attr) | |
| numberOfAttributes | back to summary |
|---|---|
| public static int numberOfAttributes() | |
| set | back to summary |
|---|---|
| public void set(AttributedObject node, T arg) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| type | back to summary |
|---|---|
| public Class | |