api: add group ironman account types
This commit is contained in:
@@ -44,16 +44,33 @@ public enum AccountType
|
|||||||
/**
|
/**
|
||||||
* Hardcore ironman account type.
|
* Hardcore ironman account type.
|
||||||
*/
|
*/
|
||||||
HARDCORE_IRONMAN;
|
HARDCORE_IRONMAN,
|
||||||
|
/**
|
||||||
|
* Group ironman account type
|
||||||
|
*/
|
||||||
|
GROUP_IRONMAN,
|
||||||
|
/**
|
||||||
|
* Hardcore group ironman account type
|
||||||
|
*/
|
||||||
|
HARDCORE_GROUP_IRONMAN;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether this type is an ironman.
|
* Checks whether this type is a non-group ironman.
|
||||||
*
|
*
|
||||||
* @return {@code true} if the type is any of the ironman types.
|
* @return {@code true} if the type is any of the non-group ironman types.
|
||||||
*/
|
*/
|
||||||
public boolean isIronman()
|
public boolean isIronman()
|
||||||
{
|
{
|
||||||
return this.ordinal() >= IRONMAN.ordinal() && this.ordinal() <= HARDCORE_IRONMAN.ordinal();
|
return this.ordinal() >= IRONMAN.ordinal() && this.ordinal() <= HARDCORE_IRONMAN.ordinal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether this type is a group ironman.
|
||||||
|
*
|
||||||
|
* @return {@code true} if the type is either of the group ironman types.
|
||||||
|
*/
|
||||||
|
public boolean isGroupIronman()
|
||||||
|
{
|
||||||
|
return this.ordinal() >= GROUP_IRONMAN.ordinal() && this.ordinal() <= HARDCORE_GROUP_IRONMAN.ordinal();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user