Uses of Interface
dev.metaschema.core.metapath.item.atomic.INumericItem
Packages that use INumericItem
Package
Description
Provides the core framework for defining and executing Metapath functions.
Built-in Metapath function implementations based on the XPath 3.1
specification.
Atomic item types representing indivisible values in the Metapath type
system.
-
Uses of INumericItem in dev.metaschema.core.metapath.function
Methods in dev.metaschema.core.metapath.function that return INumericItemModifier and TypeMethodDescriptionstatic INumericItemFunctionUtils.castToNumeric(IAnyAtomicItem item) Casts the provided item value to aINumericItemvalue.static INumericItemFunctionUtils.toNumeric(IAnyAtomicItem item) Deprecated, for removal: This API element is subject to removal in a future version.static INumericItemDeprecated, for removal: This API element is subject to removal in a future version.static INumericItemDeprecated, for removal: This API element is subject to removal in a future version.static INumericItemFunctionUtils.toNumericOrNull(IAnyAtomicItem item) Deprecated, for removal: This API element is subject to removal in a future version.Methods in dev.metaschema.core.metapath.function with parameters of type INumericItemModifier and TypeMethodDescriptionstatic IBooleanItemComparisonFunctions.numericCompare(INumericItem left, ComparisonFunctions.Operator operator, INumericItem right) Perform a number-based comparison of therightitem against theleftitem using the specifiedoperator. -
Uses of INumericItem in dev.metaschema.core.metapath.function.library
Methods in dev.metaschema.core.metapath.function.library that return INumericItemModifier and TypeMethodDescriptionNumericFunction.INumericExecutor.execute(INumericItem item) Perform the execution using the provideditem.Methods in dev.metaschema.core.metapath.function.library that return types with arguments of type INumericItemModifier and TypeMethodDescriptionNumericFunction.execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) Methods in dev.metaschema.core.metapath.function.library with parameters of type INumericItemModifier and TypeMethodDescriptionNumericFunction.INumericExecutor.execute(INumericItem item) Perform the execution using the provideditem.Method parameters in dev.metaschema.core.metapath.function.library with type arguments of type INumericItemModifier and TypeMethodDescriptionstatic IDecimalItemFnAvg.averageNumeric(Collection<? extends INumericItem> items) Get the average of a collection of numeric items. -
Uses of INumericItem in dev.metaschema.core.metapath.item.atomic
Subinterfaces of INumericItem in dev.metaschema.core.metapath.item.atomicModifier and TypeInterfaceDescriptioninterfaceAn atomic Metapath item containing a decimal data value.interfaceAn atomic Metapath item containing an integer data value.interfaceAn atomic Metapath item containing a non-negative integer data value.interfaceAn atomic Metapath item containing a positive integer data value.Methods in dev.metaschema.core.metapath.item.atomic that return INumericItemModifier and TypeMethodDescriptiondefault INumericItemIDecimalItem.abs()INumericItem.abs()Get the absolute value of the item.default INumericItemINumericItem.add(INumericItem addend) Create a new sum by adding this value to the provided addend value.static INumericItemINumericItem.cast(IAnyAtomicItem item) Cast the provided type to this item type.INumericItem.castAsType(IAnyAtomicItem item) default INumericItemINumericItem.divide(INumericItem divisor) Divide this dividend value by the provided divisor value.default INumericItemINumericItem.mod(INumericItem divisor) Compute the remainder when dividing this dividend value by the provided divisor value.default INumericItemINumericItem.multiply(INumericItem multiplier) Multiply this multiplicand value by the provided multiplier value.INumericItem.negate()Reverse the sign of this value.default INumericItemINumericItem.round()Round the item's value with zero precision.default INumericItemINumericItem.round(IIntegerItem precisionItem) Round the item's value with the specified precision.default INumericItemINumericItem.subtract(INumericItem subtrahend) Determine the difference by subtracting the provided subtrahend value from this minuend value.Methods in dev.metaschema.core.metapath.item.atomic that return types with arguments of type INumericItemModifier and TypeMethodDescriptionstatic IAtomicOrUnionType<INumericItem>INumericItem.type()Get the type information for this item.Methods in dev.metaschema.core.metapath.item.atomic with parameters of type INumericItemModifier and TypeMethodDescriptiondefault INumericItemINumericItem.add(INumericItem addend) Create a new sum by adding this value to the provided addend value.default INumericItemINumericItem.divide(INumericItem divisor) Divide this dividend value by the provided divisor value.default IIntegerItemIDecimalItem.integerDivide(INumericItem divisor) Divide this dividend value by the provided divisor value using integer division.default IIntegerItemINumericItem.integerDivide(INumericItem divisor) Divide this dividend value by the provided divisor value using integer division.default IDecimalItemIDecimalItem.mod(INumericItem divisor) Compute the remainder when dividing this dividend value by the provided divisor value.default INumericItemINumericItem.mod(INumericItem divisor) Compute the remainder when dividing this dividend value by the provided divisor value.default INumericItemINumericItem.multiply(INumericItem multiplier) Multiply this multiplicand value by the provided multiplier value.default INumericItemINumericItem.subtract(INumericItem subtrahend) Determine the difference by subtracting the provided subtrahend value from this minuend value.static INonNegativeIntegerItemINonNegativeIntegerItem.valueOf(INumericItem value) Create an item from an existing integer value.static IPositiveIntegerItemIPositiveIntegerItem.valueOf(INumericItem value) Create an item from an existing integer value.
FunctionUtils.castToNumeric(IAnyAtomicItem)with null checking instead