Enum StandardBoolean
-
- All Implemented Interfaces:
-
pro.fessional.wings.faceless.enums.ConstantEnum
public enum StandardBoolean implements ConstantEnum
- Since:
2021-02-20
trydofor
-
-
Method Summary
Modifier and Type Method Description StringgetType()Enum grouping: same type for same enum, auto Pascal naming booleanisSuper()Whether end with `00` booleansameSuper(long id)Whether in same Super (same group) booleansameSuper(ConstantEnum e)intgetSuperId()booleanisStandard()Whether a standard database compatible x-2-2 format static StandardBooleanvalueOf(boolean bool)static StandardBooleanvalueOf(int v)static StandardBooleanidOf(Integer id, StandardBoolean elz)static StandardBooleancodeOf(String code, StandardBoolean elz)static StandardBooleannameOf(String name, StandardBoolean elz)static Array<StandardBoolean>values()Returns an array containing the constants of this enum type, in the order they're declared. static StandardBooleanvalueOf(String name)Returns the enum constant of this type with the specified name. intgetId()dynamic id has 9+ digits, static id has 8 digits; `3-2-2` segmentation recommended (table-group-value); `00` ending is SUPER StringgetInfo()-
-
Method Detail
-
isSuper
boolean isSuper()
Whether end with `00`
-
sameSuper
boolean sameSuper(long id)
Whether in same Super (same group)
-
sameSuper
boolean sameSuper(ConstantEnum e)
-
getSuperId
int getSuperId()
-
isStandard
boolean isStandard()
Whether a standard database compatible x-2-2 format
-
valueOf
@NotNull() static StandardBoolean valueOf(boolean bool)
-
valueOf
@Nullable() static StandardBoolean valueOf(int v)
-
idOf
@Contract(value = "_, !null -> !null") static StandardBoolean idOf(Integer id, StandardBoolean elz)
-
codeOf
@Contract(value = "_, !null -> !null") static StandardBoolean codeOf(String code, StandardBoolean elz)
-
nameOf
@Contract(value = "_, !null -> !null") static StandardBoolean nameOf(String name, StandardBoolean elz)
-
values
static Array<StandardBoolean> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static StandardBoolean valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
getId
int getId()
dynamic id has 9+ digits, static id has 8 digits; `3-2-2` segmentation recommended (table-group-value); `00` ending is SUPER
-
-
-
-