クラス SNumberImpl<T extends Number>
java.lang.Object
org.wcardinal.controller.data.internal.SBaseImpl<T>
org.wcardinal.controller.data.internal.SNumberImpl<T>
- すべての実装されたインタフェース:
Comparable<T>,SBase<T>,SLockable,SNumber<T>,SScalar<T>,SVariable,Unlockable
- 直系の既知のサブクラス:
SDoubleImpl,SFloatImpl,SIntegerImpl,SLongImpl
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明voidcompact(long authorizedRevision) booleancompareAndSet(T expected, T update) Atomically sets to the 'update' if the 'expected' is equal to the current value.booleanReturns true if this contains the specified value.booleancontainsAll(Collection<?> others) Returns true if this contains all the specified values.booleanget()Returns the current value.Atomically sets to the specified value and returns the old value.getValue()Returns the current value.intIf the value isList,ArrayNodeor an array, returns the index of the specified value.voidInitialize this.booleanisEmpty()Returns true if the size is zero.booleanReturns true if the value is not null.booleanisNull()Returns true if the value is null.intIf the value isList,ArrayNodeor an array, returns the last index of the specified value.voidonAuthorized(long authorizedRevision) reset()Resets to the current value.Resets to the current value.Sets to the specified value.voidsetNonNull(boolean isNonNull) Sets to the specified value.intsize()voidtoDirty()Marks itself as updated.toString()クラスから継承されたメソッド org.wcardinal.controller.data.internal.SBaseImpl
getRevision, getType, isInitialized, isLocked, isLoose, isNonNull, isReadOnly, isSoft, isWeak, lock, override, setLock, setLoose, setParent, setReadOnly, setSoft, setWeak, tryLock, tryLock, uninitialize, unlock, unlockクラスから継承されたメソッド java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitインタフェースから継承されたメソッド java.lang.Comparable
compareToインタフェースから継承されたメソッド org.wcardinal.controller.data.SLockable
isLocked, lock, tryLock, tryLock, unlock, unlockインタフェースから継承されたメソッド org.wcardinal.controller.data.SNumber
addAndGet, decrementAndGet, equals, getAndAdd, getAndDecrement, getAndIncrement, incrementAndGetインタフェースから継承されたメソッド org.wcardinal.controller.data.SScalar
compareAndSet, contains, containsAll, equals, get, getAndSet, getValue, indexOf, isEmpty, isNotNull, isNull, lastIndexOf, reset, resetValue, set, setValue, size, toDirtyインタフェースから継承されたメソッド org.wcardinal.controller.data.SVariable
initialize, isInitialized, isNonNull, isReadOnly
-
コンストラクタの詳細
-
SNumberImpl
-
-
メソッドの詳細
-
get
インタフェースからコピーされた説明:SScalarReturns the current value. -
set
インタフェースからコピーされた説明:SScalarSets to the specified value. -
reset
インタフェースからコピーされた説明:SScalarResets to the current value. -
getValue
インタフェースからコピーされた説明:SScalarReturns the current value. -
setValue
インタフェースからコピーされた説明:SScalarSets to the specified value. -
resetValue
インタフェースからコピーされた説明:SScalarResets to the current value.- 定義:
resetValueインタフェース内SScalar<T>- 戻り値:
- the current value
-
toDirty
public void toDirty()インタフェースからコピーされた説明:SScalarMarks itself as updated. -
compareAndSet
インタフェースからコピーされた説明:SScalarAtomically sets to the 'update' if the 'expected' is equal to the current value.- 定義:
compareAndSetインタフェース内SScalar<T>- パラメータ:
expected- the expected valueupdate- the new value- 戻り値:
- true if the 'expected' is equal to the current value
-
getAndSet
インタフェースからコピーされた説明:SScalarAtomically sets to the specified value and returns the old value. -
pack
-
onAuthorized
public void onAuthorized(long authorizedRevision) - 定義:
onAuthorizedインタフェース内SBase<T>
-
unpack
-
compact
public void compact(long authorizedRevision) -
toString
-
equals
-
initialize
public void initialize()インタフェースからコピーされた説明:SVariableInitialize this.- 定義:
initializeインタフェース内SVariable
-
setNonNull
public void setNonNull(boolean isNonNull) - 定義:
setNonNullインタフェース内SBase<T>
-
size
public int size()インタフェースからコピーされた説明:SScalarIf the value isCollection,Map,ArrayNodeorObjectNode, returns the its size. If the value is an array, returns the its length. If the value is null, returns 0. For anything else, returns 1. -
isEmpty
public boolean isEmpty()インタフェースからコピーされた説明:SScalarReturns true if the size is zero. -
isNull
public boolean isNull()インタフェースからコピーされた説明:SScalarReturns true if the value is null. -
isNotNull
public boolean isNotNull()インタフェースからコピーされた説明:SScalarReturns true if the value is not null. -
indexOf
インタフェースからコピーされた説明:SScalarIf the value isList,ArrayNodeor an array, returns the index of the specified value. Otherwise, returns -1. -
lastIndexOf
インタフェースからコピーされた説明:SScalarIf the value isList,ArrayNodeor an array, returns the last index of the specified value. Otherwise, returns -1.- 定義:
lastIndexOfインタフェース内SScalar<T>- パラメータ:
o- value to search for- 戻り値:
- the last index of the specified value
-
contains
インタフェースからコピーされた説明:SScalarReturns true if this contains the specified value. -
containsAll
インタフェースからコピーされた説明:SScalarReturns true if this contains all the specified values.- 定義:
containsAllインタフェース内SScalar<T>- パラメータ:
others- values to search for- 戻り値:
- true if this contains all the specified values
-