Class Uln

  • All Implemented Interfaces:
    Iterable<Item>

    public final class Uln
    extends ANum
    Unsigned long (xs:unsignedLong).
    Author:
    BaseX Team 2005-24, BSD License, Christian Gruen
    • Field Detail

      • MAXULN

        public static final BigDecimal MAXULN
        Maximum unsigned long values.
    • Constructor Detail

      • Uln

        public Uln​(BigInteger value)
        Constructor.
        Parameters:
        value - decimal value
    • Method Detail

      • string

        public byte[] string()
        Description copied from class: ANum
        Returns a string representation of the value.
        Specified by:
        string in class ANum
        Returns:
        string value
      • bool

        public boolean bool​(InputInfo ii)
        Description copied from class: Item
        Returns a boolean representation of the value.
        Overrides:
        bool in class Item
        Parameters:
        ii - input info (can be null)
        Returns:
        boolean value
      • itr

        public long itr()
        Description copied from class: ANum
        Returns an integer (long) representation of the value.
        Specified by:
        itr in class ANum
        Returns:
        long value
      • flt

        public float flt()
        Description copied from class: ANum
        Returns a float representation of the value.
        Specified by:
        flt in class ANum
        Returns:
        float value
      • dbl

        public double dbl()
        Description copied from class: ANum
        Returns a double representation of the value.
        Specified by:
        dbl in class ANum
        Returns:
        double value
      • dec

        public BigDecimal dec​(InputInfo ii)
        Description copied from class: Item
        Returns a decimal representation of the value.
        Overrides:
        dec in class Item
        Parameters:
        ii - input info (can be null)
        Returns:
        decimal value
      • abs

        public ANum abs()
        Description copied from class: ANum
        Returns an absolute value.
        Specified by:
        abs in class ANum
        Returns:
        absolute value
      • ceiling

        public Uln ceiling()
        Description copied from class: ANum
        Returns an ceiling value.
        Specified by:
        ceiling in class ANum
        Returns:
        ceiling value
      • floor

        public Uln floor()
        Description copied from class: ANum
        Returns an floor value.
        Specified by:
        floor in class ANum
        Returns:
        floor value
      • round

        public ANum round​(int prec,
                          FnRound.RoundMode mode)
        Description copied from class: ANum
        Returns a rounded value.
        Specified by:
        round in class ANum
        Parameters:
        prec - precision
        mode - rounding mode
        Returns:
        rounded value
      • equal

        public boolean equal​(Item item,
                             Collation coll,
                             InputInfo ii)
                      throws QueryException
        Description copied from class: Item
        Compares items for equality. Called by CmpV.OpV.
        Specified by:
        equal in class Item
        Parameters:
        item - item to be compared
        coll - collation (can be null)
        ii - input info (can be null)
        Returns:
        result of check
        Throws:
        QueryException - query exception
      • compare

        public int compare​(Item item,
                           Collation coll,
                           boolean transitive,
                           InputInfo ii)
                    throws QueryException
        Description copied from class: Item
        Compares the current and the specified item.
        Overrides:
        compare in class Item
        Parameters:
        item - item to be compared
        coll - collation (can be null)
        transitive - transitive comparison
        ii - input info (can be null)
        Returns:
        difference
        Throws:
        QueryException - query exception
      • toJava

        public Object toJava()
        Description copied from class: Value
        Returns a Java representation of the value.
        Specified by:
        toJava in class Value
        Returns:
        Java object