register(String) method, whose return value should be used to instantiate the attribute. A class can implement
multiple types
| Modifier and Type | Field and Description |
|---|---|
| private static final int | MAX_ATTRIBUTE_COUNT
The long bitmask is limited to 64 bits |
| public final long | type
The type of this attribute |
| private final int | |
| private static final Array | types
The registered type aliases |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Attribute | |
| protected boolean | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static final String | getAttributeAlias(final long type)
Returns: The alias of the specified attribute type, or null if not available. |
| public static final long | getAttributeType(final String alias)
Returns: The ID of the specified attribute type, or zero if not available |
| public int | |
| protected static final long | Returns: the ID of the newly registered type, or the ID of the existing type if the alias was already registeredThe alias of the type to register, must be different for each direct type, will be used for debugging alias)Call this method to register a custom attribute type, see the wiki for an example. |
| public String |
| MAX_ATTRIBUTE_COUNT | back to summary |
|---|---|
| private static final int MAX_ATTRIBUTE_COUNT The long bitmask is limited to 64 bits | |
| type | back to summary |
|---|---|
| public final long type The type of this attribute | |
| typeBit | back to summary |
|---|---|
| private final int typeBit | |
| types | back to summary |
|---|---|
| private static final Array<String> types The registered type aliases | |
| Attribute | back to summary |
|---|---|
| protected Attribute(final long type) | |
| copy | back to summary |
|---|---|
public abstract Attribute copy()
| |
| equals | back to summary |
|---|---|
| protected boolean equals(Attribute other) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAttributeAlias | back to summary |
|---|---|
public static final String getAttributeAlias(final long type)
| |
| getAttributeType | back to summary |
|---|---|
public static final long getAttributeType(final String alias)
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| register | back to summary |
|---|---|
| protected static final long register(final String alias) Call this method to register a custom attribute type, see the wiki for an example. If the alias already exists, then that
ID will be reused. The alias should be unambiguously and will by default be returned by the call to
| |
| 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-
| |