クラス SList<V>
java.lang.Object
org.wcardinal.controller.data.SList<V>
- 型パラメータ:
V- element type
- すべての実装されたインタフェース:
Iterable<V>,Collection<V>,List<V>,SLockable,SVariable,Unlockable
- 直系の既知のサブクラス:
SListImpl,SMovableList
Represents the list data.
The class
V can be any class.
However, for synchronization, the class V must be serializable
to, and deserializable from JSON by the Jackson.-
ネストされたクラスの概要
ネストされたクラス -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明abstract booleanclearAndAdd(V element) Clear this list and then appends the specified element to this list.abstract booleanclearAndAddAll(Collection<? extends V> elements) Clear this list and then appends the specified elements to this list.abstract voidReplaces the existing elements with the specified elements if the existing elements are not equal to the specified elements.abstract Vreset(int index) Resets the specified index and returns the value at the specified index.abstract voidtoDirty()Marks all the elements as updated.abstract voidtoDirty(int index) Marks the element of the specified index as updated.クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド java.util.Collection
parallelStream, removeIf, stream, toArrayインタフェースから継承されたメソッド java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayインタフェースから継承されたメソッド org.wcardinal.controller.data.SLockable
isLocked, lock, tryLock, tryLock, unlock, unlockインタフェースから継承されたメソッド org.wcardinal.controller.data.SVariable
initialize, isInitialized, isNonNull, isReadOnly
-
コンストラクタの詳細
-
SList
public SList()
-
-
メソッドの詳細
-
replace
Replaces the existing elements with the specified elements if the existing elements are not equal to the specified elements. For testing the equality of elements,V#equals(Object)is used.- パラメータ:
elements- new elements- 例外:
NullPointerException- if the specified iterable is null
-
toDirty
Marks the element of the specified index as updated.- パラメータ:
index- index of the element to be marked as updated
-
toDirty
Marks all the elements as updated. -
clearAndAdd
Clear this list and then appends the specified element to this list.- パラメータ:
element- element to be appended to this list- 戻り値:
- true
- 例外:
NullPointerException- if this list does not permit null value, and the specified element is null
-
clearAndAddAll
Clear this list and then appends the specified elements to this list.- パラメータ:
elements- elements to be appended to this list- 戻り値:
- true if this list is changed as a result of the call
- 例外:
NullPointerException- if the specified collection is null, or if this list does not permit null value, and the specified collection contains null values
-
reset
Resets the specified index and returns the value at the specified index.- パラメータ:
index- the index to be reset- 戻り値:
- the value at the specified index
- 例外:
IndexOutOfBoundsException- if the specified index is out of range (index < 0 || size() <= index)
-