Interface IValueTypeNumber<V extends IValue>
- All Superinterfaces:
IValueType<V>,IValueTypeNamed<V>
- All Known Implementing Classes:
ValueTypeDouble,ValueTypeInteger,ValueTypeLong
A numerical value type.
To allow for a good functioning, this requires all types to have mappings to each other in the
IValueCastRegistry.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
IValueType.ValueTypeComparator -
Method Summary
Modifier and TypeMethodDescriptionCreate an immutable default (zero) value.booleangreaterThan(V a, V b) booleanbooleanbooleanMethods inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
canDeserialize, cast, correspondsTo, createLogicProgrammerElement, deserialize, deserializeValuePredicate, getDisplayColor, getDisplayColorFormat, getTranslationKey, getTypeName, getUniqueName, getVariableItemOverrideModel, isCategory, isObject, loadTooltip, materialize, parseString, renderISTER, serialize, toCompactString, toStringMethods inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueTypeNamed
getName
-
Method Details
-
getDefault
V getDefault()Create an immutable default (zero) value.- Specified by:
getDefaultin interfaceIValueType<V extends IValue>- Returns:
- The zero value of this number type.
-
isZero
-
isOne
-
add
-
subtract
-
multiply
-
divide
-
max
-
min
-
increment
-
decrement
-
modulus
-
compact
-
greaterThan
-
lessThan
-
round
-
ceil
-
floor
-