public interface BitwiseOperationBuilder extends ValueAccessor.ValueProperty<Integer>, ValueAccessor.ValueBuilder<Integer,BitwiseOperationBuilder>
#setValue(Integer)
or (as of the builder pattern)
withValue(Integer)
.ValueAccessor.ValueBuilder<V,B extends ValueAccessor.ValueBuilder<V,B>>, ValueAccessor.ValueMutator<V>, ValueAccessor.ValueProperty<V>
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) |
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. |
getValue
setValue
default BitwiseOperationBuilder withValue(Integer aValue)
withValue
in interface 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)
Copyright © 2016. All rights reserved.