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

公開メンバ関数

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

静的公開変数類

static final long MAX_LONG_VALUE = Long.MAX_VALUE
 
static final BigInteger MAX_BIG_VALUE = new BigInteger("18446744073709551615")
 
static final long MIN_VALUE = 0
 

非公開変数類

BigInteger value
 
long top
 
long bottom
 

詳解

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.

構築子と解体子

◆ UInt64() [1/4]

org.freedesktop.dbus.UInt64.UInt64 ( long  value)
inline

Create a UInt64 from a long.

引数
valueMust be a valid integer within MIN_VALUE–MAX_VALUE
例外
NumberFormatExceptionif value is not between MIN_VALUE and MAX_VALUE
49  {
50  if (value < MIN_VALUE || value > MAX_LONG_VALUE)
51  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_LONG_VALUE}));
52  this.value = new BigInteger("" + value);
53  this.top = this.value.shiftRight(32).and(new BigInteger("4294967295")).longValue();
54  this.bottom = this.value.and(new BigInteger("4294967295")).longValue();
55  }
static final long MIN_VALUE
Definition: UInt64.java:38
BigInteger value()
Definition: UInt64.java:116
long bottom()
Definition: UInt64.java:199
long top()
Definition: UInt64.java:192
static final long MAX_LONG_VALUE
Definition: UInt64.java:30

◆ UInt64() [2/4]

org.freedesktop.dbus.UInt64.UInt64 ( long  top,
long  bottom 
)
inline

Create a UInt64 from two longs.

引数
topMost significant 4 bytes.
bottomLeast significant 4 bytes.
63  {
64  BigInteger a = new BigInteger("" + top);
65  a = a.shiftLeft(32);
66  a = a.add(new BigInteger("" + bottom));
67  if (0 > a.compareTo(BigInteger.ZERO))
68  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{a, MIN_VALUE, MAX_BIG_VALUE}));
69  if (0 < a.compareTo(MAX_BIG_VALUE))
70  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{a, MIN_VALUE, MAX_BIG_VALUE}));
71  this.value = a;
72  this.top = top;
73  this.bottom = bottom;
74  }
static final long MIN_VALUE
Definition: UInt64.java:38
BigInteger value()
Definition: UInt64.java:116
long bottom()
Definition: UInt64.java:199
long top()
Definition: UInt64.java:192
static final BigInteger MAX_BIG_VALUE
Definition: UInt64.java:34

◆ UInt64() [3/4]

org.freedesktop.dbus.UInt64.UInt64 ( BigInteger  value)
inline

Create a UInt64 from a BigInteger

引数
valueMust be a valid BigInteger between MIN_VALUE–MAX_BIG_VALUE
例外
NumberFormatExceptionif value is not an integer between MIN_VALUE and MAX_BIG_VALUE
82  {
83  if (null == value)
84  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_BIG_VALUE}));
85  if (0 > value.compareTo(BigInteger.ZERO))
86  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_BIG_VALUE}));
87  if (0 < value.compareTo(MAX_BIG_VALUE))
88  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_BIG_VALUE}));
89  this.value = value;
90  this.top = this.value.shiftRight(32).and(new BigInteger("4294967295")).longValue();
91  this.bottom = this.value.and(new BigInteger("4294967295")).longValue();
92  }
static final long MIN_VALUE
Definition: UInt64.java:38
BigInteger value()
Definition: UInt64.java:116
long bottom()
Definition: UInt64.java:199
long top()
Definition: UInt64.java:192
static final BigInteger MAX_BIG_VALUE
Definition: UInt64.java:34

◆ UInt64() [4/4]

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

Create a UInt64 from a String.

引数
valueMust parse to a valid integer within MIN_VALUE–MAX_BIG_VALUE
例外
NumberFormatExceptionif value is not an integer between MIN_VALUE and MAX_BIG_VALUE
100  {
101  if (null == value)
102  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_BIG_VALUE}));
103  BigInteger a = new BigInteger(value);
104  if (0 > a.compareTo(BigInteger.ZERO))
105  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_BIG_VALUE}));
106  if (0 < a.compareTo(MAX_BIG_VALUE))
107  throw new NumberFormatException(MessageFormat.format(getString("isNotBetween"), new Object[]{value, MIN_VALUE, MAX_BIG_VALUE}));
108  this.value = a;
109  this.top = this.value.shiftRight(32).and(new BigInteger("4294967295")).longValue();
110  this.bottom = this.value.and(new BigInteger("4294967295")).longValue();
111  }
static final long MIN_VALUE
Definition: UInt64.java:38
BigInteger value()
Definition: UInt64.java:116
long bottom()
Definition: UInt64.java:199
long top()
Definition: UInt64.java:192
static final BigInteger MAX_BIG_VALUE
Definition: UInt64.java:34

関数詳解

◆ bottom()

long org.freedesktop.dbus.UInt64.bottom ( )
inline

Least significant 4 bytes.

199  {
200  return bottom;
201  }
long bottom()
Definition: UInt64.java:199

◆ byteValue()

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

The value of this as a byte.

123  {
124  return value.byteValue();
125  }
BigInteger value()
Definition: UInt64.java:116

◆ compareTo()

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

Compare two UInt32s.

戻り値
0 if equal, -ve or +ve if they are different.
178  {
179  return this.value.compareTo(other.value);
180  }
BigInteger value()
Definition: UInt64.java:116

◆ doubleValue()

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

The value of this as a double.

130  {
131  return value.doubleValue();
132  }
BigInteger value()
Definition: UInt64.java:116

◆ equals()

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

Test two UInt64s for equality.

165  {
166  return o instanceof UInt64 && this.value.equals(((UInt64) o).value);
167  }
BigInteger value()
Definition: UInt64.java:116
UInt64(long value)
Definition: UInt64.java:49

◆ floatValue()

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

The value of this as a float.

137  {
138  return value.floatValue();
139  }
BigInteger value()
Definition: UInt64.java:116

◆ hashCode()

int org.freedesktop.dbus.UInt64.hashCode ( )
inline
169  {
170  return value.hashCode();
171  }
BigInteger value()
Definition: UInt64.java:116

◆ intValue()

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

The value of this as a int.

144  {
145  return value.intValue();
146  }
BigInteger value()
Definition: UInt64.java:116

◆ longValue()

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

The value of this as a long.

151  {
152  return value.longValue();
153  }
BigInteger value()
Definition: UInt64.java:116

◆ shortValue()

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

The value of this as a short.

158  {
159  return value.shortValue();
160  }
BigInteger value()
Definition: UInt64.java:116

◆ top()

long org.freedesktop.dbus.UInt64.top ( )
inline

Most significant 4 bytes.

192  {
193  return top;
194  }
long top()
Definition: UInt64.java:192

◆ toString()

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

The value of this as a string.

185  {
186  return value.toString();
187  }
BigInteger value()
Definition: UInt64.java:116

◆ value()

BigInteger org.freedesktop.dbus.UInt64.value ( )
inline

The value of this as a BigInteger.

116  {
117  return value;
118  }
BigInteger value()
Definition: UInt64.java:116

メンバ詳解

◆ bottom

long org.freedesktop.dbus.UInt64.bottom
private

◆ MAX_BIG_VALUE

final BigInteger org.freedesktop.dbus.UInt64.MAX_BIG_VALUE = new BigInteger("18446744073709551615")
static

Maximum allowed value (when accessed as a BigInteger)

◆ MAX_LONG_VALUE

final long org.freedesktop.dbus.UInt64.MAX_LONG_VALUE = Long.MAX_VALUE
static

Maximum allowed value (when accessed as a long)

◆ MIN_VALUE

final long org.freedesktop.dbus.UInt64.MIN_VALUE = 0
static

Minimum allowed value

◆ top

long org.freedesktop.dbus.UInt64.top
private

◆ value

BigInteger org.freedesktop.dbus.UInt64.value
private

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