Class NTxNumberUtils
java.lang.Object
net.thevpc.ntexup.api.util.NTxNumberUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.thevpc.nuts.elem.NNumberElementasNumberElement(net.thevpc.nuts.elem.NElement e, NTxResolutionContext context) static NTxNumberUtils.UnitTypedetectUnitType(String any) static booleaneq(net.thevpc.nuts.elem.NNumberElement a1, net.thevpc.nuts.elem.NNumberElement b1) static doubleevalMeterPosition(net.thevpc.nuts.elem.NNumberElement e, net.thevpc.nuts.elem.NNumberElement baseSize, net.thevpc.nuts.elem.NNumberElement baseOffset) static net.thevpc.nuts.elem.NNumberElementstatic net.thevpc.nuts.elem.NNumberElementofNumber(net.thevpc.nuts.elem.NNumberElement a) static net.thevpc.nuts.util.NOptional<Double> toHertz(net.thevpc.nuts.elem.NNumberElement a) static net.thevpc.nuts.util.NOptional<Double> toMeter(net.thevpc.nuts.elem.NElement e) static net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NNumberElement> toSIUnit(net.thevpc.nuts.elem.NNumberElement a)
-
Constructor Details
-
NTxNumberUtils
public NTxNumberUtils()
-
-
Method Details
-
eq
public static boolean eq(net.thevpc.nuts.elem.NNumberElement a1, net.thevpc.nuts.elem.NNumberElement b1) -
toSIUnit
public static net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NNumberElement> toSIUnit(net.thevpc.nuts.elem.NNumberElement a) -
detectUnitType
-
toMeter
-
toHertz
-
ofNumber
public static net.thevpc.nuts.elem.NNumberElement ofNumber(net.thevpc.nuts.elem.NNumberElement a) -
ofNumber
-
asNumberElement
public static net.thevpc.nuts.elem.NNumberElement asNumberElement(net.thevpc.nuts.elem.NElement e, NTxResolutionContext context) -
evalMeterPosition
public static double evalMeterPosition(net.thevpc.nuts.elem.NNumberElement e, net.thevpc.nuts.elem.NNumberElement baseSize, net.thevpc.nuts.elem.NNumberElement baseOffset)
-