Class FixedFloatProperty
java.lang.Object
dev.prozilla.pine.common.property.fixed.FixedFloatProperty
- All Implemented Interfaces:
FixedProperty<Float>,FloatProperty,NonNullProperty<Float>,Property<Float>,Functor<Float>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal floatget()Returns the primitive value of this property.hasProperty(float value) Returns a boolean property whose value istrueif the value of this property is equal tovalue.Returns a boolean property whose value is alwaystrue.replaceNull(Float 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.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.fixed.FixedProperty
hasValueProperty, map, toStringPropertyMethods inherited from interface dev.prozilla.pine.common.property.FloatProperty
getValue, getValueOr, has, isZeroProperty, map, requireValueMethods inherited from interface dev.prozilla.pine.common.property.NonNullProperty
isNotNull
-
Field Details
-
value
protected final float value
-
-
Constructor Details
-
FixedFloatProperty
public FixedFloatProperty(float value)
-
-
Method Details
-
get
public final float get()Description copied from interface:FloatPropertyReturns the primitive value of this property.- Specified by:
getin interfaceFloatProperty- Returns:
- The primitive value of this property.
-
isNotNullProperty
Description copied from interface:NonNullPropertyReturns a boolean property whose value is alwaystrue.- Specified by:
isNotNullPropertyin interfaceFixedProperty<Float>- Specified by:
isNotNullPropertyin interfaceNonNullProperty<Float>- Specified by:
isNotNullPropertyin interfaceProperty<Float>- 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 interfaceFixedProperty<Float>- Specified by:
replaceNullin interfaceFloatProperty- Specified by:
replaceNullin interfaceNonNullProperty<Float>- Specified by:
replaceNullin interfaceProperty<Float>- Returns:
- This property.
-
hasProperty
Description copied from interface:FloatPropertyReturns a boolean property whose value istrueif the value of this property is equal tovalue.- Specified by:
hasPropertyin interfaceFloatProperty- Returns:
- A boolean property whose value is
trueif the value of this property is equal tovalue. - See Also:
-