Package eu.getmangos.utils
Enum FlagsHelper
- All Implemented Interfaces:
Serializable,Comparable<FlagsHelper>,Constable
public enum FlagsHelper extends Enum<FlagsHelper>
FlagsHelper is nothing more than an enum of flags positions. It is designed to be used in combination
with FlagUtils to help you finding whether a flag is active or not on a field (byte, short, int, long).
- Author:
- GetMangos
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description intgetPos()static FlagsHelpervalueOf(String name)Returns the enum constant of this type with the specified name.static FlagsHelper[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FLAG_1
-
FLAG_2
-
FLAG_3
-
FLAG_4
-
FLAG_5
-
FLAG_6
-
FLAG_7
-
FLAG_8
-
FLAG_9
-
FLAG_10
-
FLAG_11
-
FLAG_12
-
FLAG_13
-
FLAG_14
-
FLAG_15
-
FLAG_16
-
FLAG_17
-
FLAG_18
-
FLAG_19
-
FLAG_20
-
FLAG_21
-
FLAG_22
-
FLAG_23
-
FLAG_24
-
FLAG_25
-
FLAG_26
-
FLAG_27
-
FLAG_28
-
FLAG_29
-
FLAG_30
-
FLAG_31
-
FLAG_32
-
FLAG_33
-
FLAG_34
-
FLAG_35
-
FLAG_36
-
FLAG_37
-
FLAG_38
-
FLAG_39
-
FLAG_40
-
FLAG_41
-
FLAG_42
-
FLAG_43
-
FLAG_44
-
FLAG_45
-
FLAG_46
-
FLAG_47
-
FLAG_48
-
FLAG_49
-
FLAG_50
-
FLAG_51
-
FLAG_52
-
FLAG_53
-
FLAG_54
-
FLAG_55
-
FLAG_56
-
FLAG_57
-
FLAG_58
-
FLAG_59
-
FLAG_60
-
FLAG_61
-
FLAG_62
-
FLAG_63
-
FLAG_64
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getPos
public int getPos()
-