- All Implemented Interfaces:
Serializable,Comparable<FlowModifier>,Constable,Debug
Network channel flow delta, modifying read and write
operations. Represents an atomic change to a
FlowControl state.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionread operation should be disabled; write operation should not be modified.read operation should be disabled; write operation should be enabled.read and write operations should be disabled.write operation should be disabled; read operation should not be modified.write operation should be disabled; read operation should be enabled.read operation should be enabled; write operation should not be modified.read and write operations should be enabled.write operation should be enabled; read operation should not be modified.read and write operations should not be modified. -
Method Summary
Modifier and TypeMethodDescriptionand(FlowModifier that) Returns theFlowModifierwith all modifications applied inthisandthatapplied, with enable instructions taking precedence over conflicting disable instructions.<T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.booleanReturnstrueif the read operation should be disabled.booleanReturnstrueif the read operation should be enabled.booleanReturnstrueif the write operation should be disabled.booleanReturnstrueif the write operation should be enabled.not()Returns theFlowModifierwith all applied modifications inthisunapplied, and all unapplied operations inthisapplied, with enable instructions taking precedence over conflicting disable instructions.or(FlowModifier that) Returns theFlowModifierwith all modifications applied inthisorthatapplied, with enable instructions taking precedence over conflicting disable instructions.static FlowModifierReturns the enum constant of this class with the specified name.static FlowModifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.xor(FlowModifier that) Returns theFlowModifierwith all modifications applied inthisorthat—but not both—applied, with enable instructions taking precedence over conflicting disable instructions.
-
Enum Constant Details
-
RESELECT
read and write operations should not be modified. -
DISABLE_READ
read operation should be disabled; write operation should not be modified. -
DISABLE_WRITE
write operation should be disabled; read operation should not be modified. -
DISABLE_READ_WRITE
read and write operations should be disabled. -
ENABLE_READ
read operation should be enabled; write operation should not be modified. -
DISABLE_WRITE_ENABLE_READ
write operation should be disabled; read operation should be enabled. -
ENABLE_WRITE
write operation should be enabled; read operation should not be modified. -
DISABLE_READ_ENABLE_WRITE
read operation should be disabled; write operation should be enabled. -
ENABLE_READ_WRITE
read and write operations should be enabled.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isReadDisabled
public boolean isReadDisabled()Returnstrueif the read operation should be disabled. -
isWriteDisabled
public boolean isWriteDisabled()Returnstrueif the write operation should be disabled. -
isReadEnabled
public boolean isReadEnabled()Returnstrueif the read operation should be enabled. -
isWriteEnabled
public boolean isWriteEnabled()Returnstrueif the write operation should be enabled. -
or
Returns theFlowModifierwith all modifications applied inthisorthatapplied, with enable instructions taking precedence over conflicting disable instructions. -
xor
Returns theFlowModifierwith all modifications applied inthisorthat—but not both—applied, with enable instructions taking precedence over conflicting disable instructions. -
and
Returns theFlowModifierwith all modifications applied inthisandthatapplied, with enable instructions taking precedence over conflicting disable instructions. -
not
Returns theFlowModifierwith all applied modifications inthisunapplied, and all unapplied operations inthisapplied, with enable instructions taking precedence over conflicting disable instructions. -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-