Class RandomIntProperty
java.lang.Object
dev.prozilla.pine.common.property.random.RandomProperty<Integer>
dev.prozilla.pine.common.property.random.RandomIntProperty
- All Implemented Interfaces:
IntProperty,NonNullProperty<Integer>,Property<Integer>,Functor<Integer>
- Direct Known Subclasses:
LocalRandomIntProperty
A property with a randomized integer value.
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.common.property.random.RandomProperty
globalRandom -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.prozilla.pine.common.property.random.RandomProperty
getRandom, setGlobalSeed, setSeedMethods 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.IntProperty
getValue, getValueOr, has, hasProperty, isZeroProperty, map, replaceNull, requireValueMethods inherited from interface dev.prozilla.pine.common.property.NonNullProperty
isNotNull, isNotNullPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
hasValue, hasValueProperty, isNull, map, snapshot, toStringProperty
-
Field Details
-
min
protected final int min -
max
protected final int max
-
-
Constructor Details
-
RandomIntProperty
-
RandomIntProperty
public RandomIntProperty(int min, int max)
-
-
Method Details
-
get
public int get()Description copied from interface:IntPropertyReturns the primitive value of this property.- Specified by:
getin interfaceIntProperty- Returns:
- The primitive value of this property.
-