public interface MaskedFlag
Indicates an enum that can provide integers for each of its values.
-
Method Summary
Modifier and TypeMethodDescriptionintgetMask()Obtains the integer value for this enum which can be included in a mask.static booleanisSet(int flags, MaskedFlag test) Indicates whether the passed flag has the relevant masked flag high.static intmask(MaskedFlag... flags) Fetch the integer mask for all presented flags.
-
Method Details
-
getMask
int getMask()Obtains the integer value for this enum which can be included in a mask.- Returns:
- the integer value for combination into a mask
-
mask
Fetch the integer mask for all presented flags.- Parameters:
flags- to mask (null or empty returns zero)- Returns:
- the integer mask for use in C
-
isSet
Indicates whether the passed flag has the relevant masked flag high.- Parameters:
flags- to evaluate (usually produced bymask(org.lmdbjava.MaskedFlag...)test- the flag being sought (required)- Returns:
- true if set.
-