Class NTxNumberUtils

java.lang.Object
net.thevpc.ntexup.api.util.NTxNumberUtils

public class NTxNumberUtils extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.thevpc.nuts.elem.NNumberElement
    asNumberElement(net.thevpc.nuts.elem.NElement e, NTxResolutionContext context)
     
     
    static boolean
    eq(net.thevpc.nuts.elem.NNumberElement a1, net.thevpc.nuts.elem.NNumberElement b1)
     
    static double
    evalMeterPosition(net.thevpc.nuts.elem.NNumberElement e, net.thevpc.nuts.elem.NNumberElement baseSize, net.thevpc.nuts.elem.NNumberElement baseOffset)
     
    static net.thevpc.nuts.elem.NNumberElement
     
    static net.thevpc.nuts.elem.NNumberElement
    ofNumber(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)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static NTxNumberUtils.UnitType detectUnitType(String any)
    • toMeter

      public static net.thevpc.nuts.util.NOptional<Double> toMeter(net.thevpc.nuts.elem.NElement e)
    • toHertz

      public static net.thevpc.nuts.util.NOptional<Double> toHertz(net.thevpc.nuts.elem.NNumberElement a)
    • ofNumber

      public static net.thevpc.nuts.elem.NNumberElement ofNumber(net.thevpc.nuts.elem.NNumberElement a)
    • ofNumber

      public static net.thevpc.nuts.elem.NNumberElement ofNumber(Double a)
    • 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)