Package nz.org.riskscape.engine.types
Class WithinRange
java.lang.Object
nz.org.riskscape.engine.types.WithinRange
- All Implemented Interfaces:
Type
,WrappingType
Type that limits value to be within a specified range.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ComplexTypeConstructor
static final TypeInformation
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.types.Type
checkForNull, find, findAllowNull, getUnwrappedType, isA, isNumeric, isWrapped, toString, unwrap
Methods inherited from interface nz.org.riskscape.engine.types.WrappingType
asStruct, estimateSize, fromBytes, isNullable, toBytes, visit
-
Field Details
-
TYPE_CONSTRUCTOR
-
TYPE_INFORMATION
-
-
Constructor Details
-
WithinRange
-
-
Method Details
-
coerce
Description copied from interface:Type
Attempt to convert the given value in to one represented by this type.
-
internalType
Description copied from interface:Type
The underlying java class used to represent this type.
- Specified by:
internalType
in interfaceType
-
toString
-
equals
-
hashCode
public int hashCode() -
getUnderlyingType
- Specified by:
getUnderlyingType
in interfaceWrappingType
- Returns:
- the type that we immediately wrap. Used by
Type.getUnwrappedType()
to descend through all wrappedType
to find the first unwrapped one.
-
getMax
-
getMin
-