mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Add forLong attribute definition
This commit is contained in:
@@ -42,6 +42,17 @@ public final class AttributeDefinition<T> {
|
||||
return new AttributeDefinition<>(defaultValue, persistence, AttributeType.LONG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an AttributeDefinition for a {@code long}.
|
||||
*
|
||||
* @param defaultValue The default value of the definition.
|
||||
* @param persistence The {@link AttributePersistence} of the definition.
|
||||
* @return The AttributeDefinition.
|
||||
*/
|
||||
public static AttributeDefinition<Long> forLong(long defaultValue, AttributePersistence persistence) {
|
||||
return new AttributeDefinition<>(defaultValue, persistence, AttributeType.LONG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an AttributeDefinition for a String.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user