Class AFTIPCGroupRequest.GroupRequestFlags
java.lang.Object
org.newsclub.net.unix.NamedIntegerBitmask<AFTIPCGroupRequest.GroupRequestFlags>
org.newsclub.net.unix.tipc.AFTIPCGroupRequest.GroupRequestFlags
- All Implemented Interfaces:
Serializable
- Enclosing class:
AFTIPCGroupRequest
public static final class AFTIPCGroupRequest.GroupRequestFlags
extends NamedIntegerBitmask<AFTIPCGroupRequest.GroupRequestFlags>
Some flags used in the group request.
- Author:
- Christian Kohlschütter
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class NamedIntegerBitmask
NamedIntegerBitmask.Constructor<T>Modifier and TypeClassDescriptionprotected static interfaceNamedIntegerBitmask.Constructor<T extends NamedIntegerBitmask<T>>Creates a new instance. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AFTIPCGroupRequest.GroupRequestFlagsReceive copies of sent messages.static final AFTIPCGroupRequest.GroupRequestFlagsReceive membership events.static final AFTIPCGroupRequest.GroupRequestFlagsNo flags set. -
Method Summary
Modifier and TypeMethodDescriptionCombines the givenAFTIPCGroupRequest.GroupRequestFlagsinstance with another one.ofValue(int v) Returns aAFTIPCGroupRequest.GroupRequestFlagsinstance given an integer value.withFlags(@NonNull AFTIPCGroupRequest.GroupRequestFlags... flags) Returns aAFTIPCGroupRequest.GroupRequestFlagsinstance representing the combination of the given list ofAFTIPCGroupRequest.GroupRequestFlagsflags.Methods inherited from class NamedIntegerBitmask
combineWith, hasFlag, name, resolve, resolve, toString, valueModifier and TypeMethodDescriptionprotected final AFTIPCGroupRequest.GroupRequestFlagscombineWith(AFTIPCGroupRequest.GroupRequestFlags[] allFlags, AFTIPCGroupRequest.GroupRequestFlags flagsNone, NamedIntegerBitmask.Constructor<AFTIPCGroupRequest.GroupRequestFlags> constr, AFTIPCGroupRequest.GroupRequestFlags other) Combines two flags / flag sets (use this to implementNamedIntegerBitmask.combineWith(NamedIntegerBitmask)).final booleanChecks if the given flag is set.final Stringname()Returns the name of the flag / flag set.protected static final <T extends NamedIntegerBitmask<T>>
Tresolve(T[] allFlags, T flagsNone, NamedIntegerBitmask.Constructor<T> constr, int v) Returns aNamedIntegerBitmaskinstance given a flag value.protected static final <T extends NamedIntegerBitmask<T>>
Tresolve(T[] allFlags, T flagsNone, NamedIntegerBitmask.Constructor<T> constr, @NonNull T[] setFlags) Returns aNamedIntegerBitmaskinstance given a series of flags.final StringtoString()final intvalue()Returns the value of the flag / flag set.
-
Field Details
-
NONE
No flags set. -
GROUP_LOOPBACK
Receive copies of sent messages. -
GROUP_MEMBER_EVTS
Receive membership events.
-
-
Method Details
-
ofValue
Returns aAFTIPCGroupRequest.GroupRequestFlagsinstance given an integer value.- Parameters:
v- The value.- Returns:
- The instance.
-
withFlags
public static AFTIPCGroupRequest.GroupRequestFlags withFlags(@NonNull AFTIPCGroupRequest.GroupRequestFlags... flags) Returns aAFTIPCGroupRequest.GroupRequestFlagsinstance representing the combination of the given list ofAFTIPCGroupRequest.GroupRequestFlagsflags.- Parameters:
flags- The flags (zero or more values).- Returns:
- The instance.
-
combineWith
Combines the givenAFTIPCGroupRequest.GroupRequestFlagsinstance with another one.- Specified by:
combineWithin classNamedIntegerBitmask<AFTIPCGroupRequest.GroupRequestFlags>- Parameters:
other- The other instance.- Returns:
- The combined instance.
-