Class FixedBooleanProperty
java.lang.Object
dev.prozilla.pine.common.property.fixed.FixedBooleanProperty
- All Implemented Interfaces:
BooleanProperty,FixedProperty<Boolean>,NonNullProperty<Boolean>,Property<Boolean>,Functor<Boolean>
public abstract class FixedBooleanProperty
extends Object
implements BooleanProperty, FixedProperty<Boolean>
-
Field Summary
Fields inherited from interface dev.prozilla.pine.common.property.BooleanProperty
FALSE, TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand(BooleanProperty booleanProperty) Returns a boolean property whose value is the AND operator applied to the value of this property and another property.hasProperty(boolean value) Returns a boolean property whose value istrueif the value of this property is equal tovalue.<T> Property<T> Returns a conditional property using this boolean property as the condition.Returns a boolean property whose value is alwaystrue.abstract FixedBooleanPropertynot()Returns a boolean property whose value is the negation of the value of this property.or(BooleanProperty booleanProperty) Returns a boolean property whose value is the OR operator applied to the value of this property and another property.replaceNull(Boolean defaultValue) Returns this property, whose value is nevernull.snapshot()Returns a fixed property whose value is the current value of this property, at the time of calling this method.xor(BooleanProperty booleanProperty) Returns a boolean property whose value is the XOR operator applied to the value of this property and another property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.BooleanProperty
and, get, getValue, getValueOr, has, map, or, requireValue, xorMethods inherited from interface dev.prozilla.pine.common.property.fixed.FixedProperty
hasValueProperty, map, toStringPropertyMethods inherited from interface dev.prozilla.pine.common.property.NonNullProperty
isNotNull
-
Constructor Details
-
FixedBooleanProperty
protected FixedBooleanProperty()
-
-
Method Details
-
not
Description copied from interface:BooleanPropertyReturns a boolean property whose value is the negation of the value of this property.- Specified by:
notin interfaceBooleanProperty- Returns:
- A boolean property that negates this property.
-
and
Description copied from interface:BooleanPropertyReturns a boolean property whose value is the AND operator applied to the value of this property and another property.- Specified by:
andin interfaceBooleanProperty- Parameters:
booleanProperty- The other boolean property- Returns:
- A boolean property representing the AND operator.
-
or
Description copied from interface:BooleanPropertyReturns a boolean property whose value is the OR operator applied to the value of this property and another property.- Specified by:
orin interfaceBooleanProperty- Parameters:
booleanProperty- The other boolean property- Returns:
- A boolean property representing the OR operator
-
xor
Description copied from interface:BooleanPropertyReturns a boolean property whose value is the XOR operator applied to the value of this property and another property.- Specified by:
xorin interfaceBooleanProperty- Parameters:
booleanProperty- The other boolean property- Returns:
- A boolean property representing the XOR operator
-
ifElse
Description copied from interface:BooleanPropertyReturns a conditional property using this boolean property as the condition.- Specified by:
ifElsein interfaceBooleanProperty- Type Parameters:
T- The type of property- Returns:
- The conditional property.
-
isNotNullProperty
Description copied from interface:NonNullPropertyReturns a boolean property whose value is alwaystrue.- Specified by:
isNotNullPropertyin interfaceFixedProperty<Boolean>- Specified by:
isNotNullPropertyin interfaceNonNullProperty<Boolean>- Specified by:
isNotNullPropertyin interfaceProperty<Boolean>- Returns:
BooleanProperty.TRUE- See Also:
-
snapshot
Description copied from interface:PropertyReturns a fixed property whose value is the current value of this property, at the time of calling this method. -
replaceNull
Description copied from interface:NonNullPropertyReturns this property, whose value is nevernull.- Specified by:
replaceNullin interfaceBooleanProperty- Specified by:
replaceNullin interfaceFixedProperty<Boolean>- Specified by:
replaceNullin interfaceNonNullProperty<Boolean>- Specified by:
replaceNullin interfaceProperty<Boolean>- Returns:
- This property.
-
hasProperty
Description copied from interface:BooleanPropertyReturns a boolean property whose value istrueif the value of this property is equal tovalue.- Specified by:
hasPropertyin interfaceBooleanProperty- Returns:
- A boolean property whose value is
trueif the value of this property is equal tovalue. - See Also:
-