public interface BitwiseOperationBuilder extends org.refcodes.mixin.ValueAccessor.ValueProperty<Integer>, org.refcodes.mixin.ValueAccessor.ValueBuilder<Integer,BitwiseOperationBuilder>
setValue(Integer)
or (as of the Builder-Pattern)
withValue(Integer)
.Modifier and Type | Method and Description |
---|---|
boolean |
isMaskable(Integer aMask)
Tests if the bits set in the mask argument are also set in the value
property ("the value property is maskable with the given mask").
|
boolean |
isTrueAt(int aPosition)
Checks if is true at.
|
BitwiseOperationBuilder |
withAnd(Integer aOperand)
Applies a bitwise AND operation to the value property with the given
operand; the value is updated accordingly and the result can be retrieved
with the
ValueAccessor.getValue() method. |
BitwiseOperationBuilder |
withNot()
Applies a bitwise NOT operation to the value property ; the value is
updated accordingly and the result can be retrieved with the
ValueAccessor.getValue() method. |
BitwiseOperationBuilder |
withOr(Integer aOperand)
Applies a bitwise OR operation to the value property with the given
operand; the value is updated accordingly and the result can be retrieved
with the
ValueAccessor.getValue() method. |
default BitwiseOperationBuilder |
withValue(Integer aValue) |
BitwiseOperationBuilder |
withXor(Integer aOperand)
Applies a bitwise XOR operation to the value property with the given
operand; the value is updated accordingly and the result can be retrieved
with the
ValueAccessor.getValue() method. |
default BitwiseOperationBuilder withValue(Integer aValue)
withValue
in interface org.refcodes.mixin.ValueAccessor.ValueBuilder<Integer,BitwiseOperationBuilder>
BitwiseOperationBuilder withAnd(Integer aOperand)
ValueAccessor.getValue()
method.aOperand
- The operand to be applied to the value property.BitwiseOperationBuilder
as of the Builder-Pattern to
chain multiple operations.BitwiseOperationBuilder withOr(Integer aOperand)
ValueAccessor.getValue()
method.aOperand
- The operand to be applied to the value property.BitwiseOperationBuilder
as of the Builder-Pattern to
chain multiple operations.BitwiseOperationBuilder withXor(Integer aOperand)
ValueAccessor.getValue()
method.aOperand
- The operand to be applied to the value property.BitwiseOperationBuilder
as of the Builder-Pattern to
chain multiple operations.BitwiseOperationBuilder withNot()
ValueAccessor.getValue()
method.BitwiseOperationBuilder
as of the Builder-Pattern to
chain multiple operations.boolean isMaskable(Integer aMask)
aMask
- The mask which's true bits are to be verified against the
value property.boolean isTrueAt(int aPosition)
aPosition
- the positionCopyright © 2018. All rights reserved.