Interface IDecimalItem
-
- All Superinterfaces:
IAnyAtomicItem
,IAtomicValuedItem
,IItem
,INumericItem
public interface IDecimalItem extends INumericItem
-
-
Field Summary
Fields Modifier and Type Field Description static IDecimalItem
ZERO
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static IDecimalItem
cast(IAnyAtomicItem item)
BigDecimal
getValue()
Get the item's "wrapped" value.static IDecimalItem
valueOf(double value)
static IDecimalItem
valueOf(long value)
static IDecimalItem
valueOf(String value)
static IDecimalItem
valueOf(BigDecimal value)
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.atomic.IAnyAtomicItem
asString, getJavaTypeAdapter, newStringItem, toAtomicItem
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.atomic.INumericItem
abs, asDecimal, asInteger, ceiling, floor, round, round, toEffectiveBoolean
-
-
-
-
Field Detail
-
ZERO
@NonNull static final IDecimalItem ZERO
-
-
Method Detail
-
valueOf
@NonNull static IDecimalItem valueOf(long value)
-
valueOf
@NonNull static IDecimalItem valueOf(double value)
-
valueOf
@NonNull static IDecimalItem valueOf(@NonNull BigDecimal value)
-
valueOf
@NonNull static IDecimalItem valueOf(@NonNull String value)
-
cast
@NonNull static IDecimalItem cast(@NonNull IAnyAtomicItem item) throws InvalidValueForCastFunctionException
-
getValue
BigDecimal getValue()
Description copied from interface:IItem
Get the item's "wrapped" value. This "wrapped" value may be:- In the case of an Assembly, a Java object representing the fields and flags of the assembly.
- In the case of a Field with flags, a Java object representing the field value and flags of the field.
- In the case of a Field without flags or a flag, a Java type managed by a
IDataTypeAdapter
or a primitive type provided by the Java standard library.
- Specified by:
getValue
in interfaceIAnyAtomicItem
- Specified by:
getValue
in interfaceIItem
- Returns:
- the value or
null
if the item has no available value
-
-