Klasse UInt64

java.lang.Object
java.lang.Number
org.freedesktop.dbus.types.UInt64
Alle implementierten Schnittstellen:
Serializable, Comparable<UInt64>

public class UInt64 extends Number implements Comparable<UInt64>
Class to represent unsigned 64-bit numbers. Warning: Any functions which take or return a long are restricted to the range of a signed 64bit number. Use the BigInteger methods if you wish access to the full range.
Siehe auch:
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final BigInteger
    Maximum allowed value (when accessed as a BigInteger)
    static final long
    Maximum allowed value (when accessed as a long)
    static final long
    Minimum allowed value
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    UInt64(long _value)
    Create a UInt64 from a long.
    UInt64(long _top, long _bottom)
    Create a UInt64 from two longs.
    UInt64(String _value)
    Create a UInt64 from a String.
    Create a UInt64 from a BigInteger
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    long
    Least significant 4 bytes.
    byte
    The value of this as a byte.
    int
    compareTo(UInt64 _other)
    Compare two UInt32s.
    double
    The value of this as a double.
    boolean
    Test two UInt64s for equality.
    float
    The value of this as a float.
    int
     
    int
    The value of this as a int.
    long
    The value of this as a long.
    short
    The value of this as a short.
    long
    top()
    Most significant 4 bytes.
    The value of this as a string.
    The value of this as a BigInteger.

    Von Klasse geerbte Methoden java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Felddetails

    • MAX_LONG_VALUE

      public static final long MAX_LONG_VALUE
      Maximum allowed value (when accessed as a long)
      Siehe auch:
    • MAX_BIG_VALUE

      public static final BigInteger MAX_BIG_VALUE
      Maximum allowed value (when accessed as a BigInteger)
    • MIN_VALUE

      public static final long MIN_VALUE
      Minimum allowed value
      Siehe auch:
  • Konstruktordetails

    • UInt64

      public UInt64(long _value)
      Create a UInt64 from a long.
      Parameter:
      _value - Must be a valid integer within MIN_VALUE–MAX_VALUE
      Löst aus:
      NumberFormatException - if value is not between MIN_VALUE and MAX_VALUE
    • UInt64

      public UInt64(long _top, long _bottom)
      Create a UInt64 from two longs.
      Parameter:
      _top - Most significant 4 bytes.
      _bottom - Least significant 4 bytes.
    • UInt64

      public UInt64(BigInteger _value)
      Create a UInt64 from a BigInteger
      Parameter:
      _value - Must be a valid BigInteger between MIN_VALUE–MAX_BIG_VALUE
      Löst aus:
      NumberFormatException - if value is not an integer between MIN_VALUE and MAX_BIG_VALUE
    • UInt64

      public UInt64(String _value)
      Create a UInt64 from a String.
      Parameter:
      _value - Must parse to a valid integer within MIN_VALUE–MAX_BIG_VALUE
      Löst aus:
      NumberFormatException - if value is not an integer between MIN_VALUE and MAX_BIG_VALUE
  • Methodendetails

    • value

      public BigInteger value()
      The value of this as a BigInteger.
      Gibt zurück:
      value
    • byteValue

      public byte byteValue()
      The value of this as a byte.
      Setzt außer Kraft:
      byteValue in Klasse Number
    • doubleValue

      public double doubleValue()
      The value of this as a double.
      Angegeben von:
      doubleValue in Klasse Number
    • floatValue

      public float floatValue()
      The value of this as a float.
      Angegeben von:
      floatValue in Klasse Number
    • intValue

      public int intValue()
      The value of this as a int.
      Angegeben von:
      intValue in Klasse Number
    • longValue

      public long longValue()
      The value of this as a long.
      Angegeben von:
      longValue in Klasse Number
    • shortValue

      public short shortValue()
      The value of this as a short.
      Setzt außer Kraft:
      shortValue in Klasse Number
    • equals

      public boolean equals(Object _o)
      Test two UInt64s for equality.
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • compareTo

      public int compareTo(UInt64 _other)
      Compare two UInt32s.
      Angegeben von:
      compareTo in Schnittstelle Comparable<UInt64>
      Parameter:
      _other - other uint64
      Gibt zurück:
      0 if equal, -ve or +ve if they are different.
    • toString

      public String toString()
      The value of this as a string.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      string
    • top

      public long top()
      Most significant 4 bytes.
      Gibt zurück:
      top
    • bottom

      public long bottom()
      Least significant 4 bytes.
      Gibt zurück:
      bottom