api: add group ironman account types

This commit is contained in:
Hydrox6
2021-10-08 12:56:28 +01:00
committed by Adam
parent 4322c372ec
commit 6536aba6ba

View File

@@ -44,16 +44,33 @@ public enum AccountType
/**
* 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()
{
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();
}
}