keycloak-federation
公開メンバ関数 | 静的公開変数類 | 非公開変数類 | 全メンバ一覧
org.freedesktop.dbus.UInt16 クラス
org.freedesktop.dbus.UInt16 の継承関係図
Inheritance graph
org.freedesktop.dbus.UInt16 連携図
Collaboration graph

公開メンバ関数

 UInt16 (int value)
 
 UInt16 (String value)
 
byte byteValue ()
 
double doubleValue ()
 
float floatValue ()
 
int intValue ()
 
long longValue ()
 
short shortValue ()
 
boolean equals (Object o)
 
int hashCode ()
 
int compareTo (UInt16 other)
 
String toString ()
 

静的公開変数類

static final int MAX_VALUE = 65535
 
static final int MIN_VALUE = 0
 

非公開変数類

int value
 

詳解

Class to represent 16-bit unsigned integers.

構築子と解体子

◆ UInt16() [1/2]

org.freedesktop.dbus.UInt16.UInt16 ( int  value)
inline

Create a UInt16 from an int.

引数
valueMust be within MIN_VALUE–MAX_VALUE
例外
NumberFormatExceptionif value is not between MIN_VALUE and MAX_VALUE
38  {
39  if (value < MIN_VALUE || value > MAX_VALUE)
40  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_VALUE}));
41  this.value = value;
42  }
static final int MAX_VALUE
Definition: UInt16.java:25
static final int MIN_VALUE
Definition: UInt16.java:29
int value
Definition: UInt16.java:30

◆ UInt16() [2/2]

org.freedesktop.dbus.UInt16.UInt16 ( String  value)
inline

Create a UInt16 from a String.

引数
valueMust parse to a valid integer within MIN_VALUE–MAX_VALUE
例外
NumberFormatExceptionif value is not an integer between MIN_VALUE and MAX_VALUE
50  {
51  this(Integer.parseInt(value));
52  }
int value
Definition: UInt16.java:30

関数詳解

◆ byteValue()

byte org.freedesktop.dbus.UInt16.byteValue ( )
inline

The value of this as a byte.

57  {
58  return (byte) value;
59  }
int value
Definition: UInt16.java:30

◆ compareTo()

int org.freedesktop.dbus.UInt16.compareTo ( UInt16  other)
inline

Compare two UInt16s.

戻り値
0 if equal, -ve or +ve if they are different.
112  {
113  return /*(int)*/ (this.value - other.value);
114  }
int value
Definition: UInt16.java:30

◆ doubleValue()

double org.freedesktop.dbus.UInt16.doubleValue ( )
inline

The value of this as a double.

64  {
65  return (double) value;
66  }
int value
Definition: UInt16.java:30

◆ equals()

boolean org.freedesktop.dbus.UInt16.equals ( Object  o)
inline

Test two UInt16s for equality.

99  {
100  return o instanceof UInt16 && ((UInt16) o).value == this.value;
101  }
UInt16(int value)
Definition: UInt16.java:38
int value
Definition: UInt16.java:30

◆ floatValue()

float org.freedesktop.dbus.UInt16.floatValue ( )
inline

The value of this as a float.

71  {
72  return (float) value;
73  }
int value
Definition: UInt16.java:30

◆ hashCode()

int org.freedesktop.dbus.UInt16.hashCode ( )
inline
103  {
104  return /*(int)*/ value;
105  }
int value
Definition: UInt16.java:30

◆ intValue()

int org.freedesktop.dbus.UInt16.intValue ( )
inline

The value of this as a int.

78  {
79  return /*(int)*/ value;
80  }
int value
Definition: UInt16.java:30

◆ longValue()

long org.freedesktop.dbus.UInt16.longValue ( )
inline

The value of this as a long.

85  {
86  return (long) value;
87  }
int value
Definition: UInt16.java:30

◆ shortValue()

short org.freedesktop.dbus.UInt16.shortValue ( )
inline

The value of this as a short.

92  {
93  return (short) value;
94  }
int value
Definition: UInt16.java:30

◆ toString()

String org.freedesktop.dbus.UInt16.toString ( )
inline

The value of this as a string.

119  {
120  return "" + value;
121  }
int value
Definition: UInt16.java:30

メンバ詳解

◆ MAX_VALUE

final int org.freedesktop.dbus.UInt16.MAX_VALUE = 65535
static

Maximum possible value.

◆ MIN_VALUE

final int org.freedesktop.dbus.UInt16.MIN_VALUE = 0
static

Minimum possible value.

◆ value

int org.freedesktop.dbus.UInt16.value
private

このクラス詳解は次のファイルから抽出されました: