Class AbstractIntegerItem
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.metapath.item.atomic.AbstractAnyAtomicItem<TYPE>
-
- gov.nist.secauto.metaschema.core.metapath.item.atomic.AbstractNumericItem<BigInteger>
-
- gov.nist.secauto.metaschema.core.metapath.item.atomic.AbstractIntegerItem
-
- All Implemented Interfaces:
IAnyAtomicItem
,IIntegerItem
,INumericItem
,IAtomicValuedItem
,IItem
public abstract class AbstractIntegerItem extends AbstractNumericItem<BigInteger> implements IIntegerItem
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.metaschema.core.metapath.item.atomic.IIntegerItem
NEGATIVE_ONE, ONE, ZERO
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractIntegerItem(BigInteger value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IIntegerItem
abs()
Get the absolute value of the item.BigDecimal
asDecimal()
BigInteger
asInteger()
boolean
toEffectiveBoolean()
-
Methods inherited from class gov.nist.secauto.metaschema.core.metapath.item.atomic.AbstractAnyAtomicItem
asString, getJavaTypeAdapter, getValue, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.IIntegerItem
ceiling, floor, getValue
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.atomic.INumericItem
round, round
-
-
-
-
Constructor Detail
-
AbstractIntegerItem
protected AbstractIntegerItem(@NonNull BigInteger value)
-
-
Method Detail
-
toEffectiveBoolean
public boolean toEffectiveBoolean()
- Specified by:
toEffectiveBoolean
in interfaceINumericItem
-
asDecimal
public BigDecimal asDecimal()
- Specified by:
asDecimal
in interfaceINumericItem
-
asInteger
public BigInteger asInteger()
- Specified by:
asInteger
in interfaceINumericItem
-
abs
public IIntegerItem abs()
Description copied from interface:INumericItem
Get the absolute value of the item.- Specified by:
abs
in interfaceIIntegerItem
- Specified by:
abs
in interfaceINumericItem
- Returns:
- this item negated if this item is negative, or the item otherwise
-
-