Class Flags
java.lang.Object
com.djrapitops.plan.extension.statistic.Flags
Return value for
FlagsProvider.
Stores named Boolean flags. A null value represents a missing flag value, but its name is retained so that it can be displayed as missing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllFalse(Collection<String> falseFlags) Place flags with value 'false' in the object.addAllTrue(Collection<String> trueFlags) Place flags with value 'true' in the object.static Flagscreate()The method Plan uses to get access to the data.booleanisEmpty()Place a flag in the object.Place flags in the object.
-
Constructor Details
-
Flags
public Flags()
-
-
Method Details
-
create
-
put
-
putAll
-
addAllTrue
Place flags with value 'true' in the object.- Parameters:
trueFlags- List of flag names- Returns:
- This object.
-
addAllFalse
Place flags with value 'false' in the object.- Parameters:
falseFlags- List of flag names- Returns:
- This object.
-
getValueByKey
-
isEmpty
public boolean isEmpty()
-