Klasse UInt16

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

public class UInt16 extends Number implements Comparable<UInt16>
Class to represent 16-bit unsigned integers.
Siehe auch:
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final int
    Maximum possible value.
    static final int
    Minimum possible value.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    UInt16(int _value)
    Create a UInt16 from an int.
    UInt16(String _value)
    Create a UInt16 from a String.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    byte
    The value of this as a byte.
    int
    compareTo(UInt16 _other)
    Compare two UInt16s.
    double
    The value of this as a double.
    boolean
    Test two UInt16s 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.
    The value of this as a string.

    Von Klasse geerbte Methoden java.lang.Object

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

    • MAX_VALUE

      public static final int MAX_VALUE
      Maximum possible value.
      Siehe auch:
    • MIN_VALUE

      public static final int MIN_VALUE
      Minimum possible value.
      Siehe auch:
  • Konstruktordetails

    • UInt16

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

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

    • 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 UInt16s 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(UInt16 _other)
      Compare two UInt16s.
      Angegeben von:
      compareTo in Schnittstelle Comparable<UInt16>
      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