クラス SMovableList<V>
java.lang.Object
org.wcardinal.controller.data.SList<V>
org.wcardinal.controller.data.SMovableList<V>
- 型パラメータ:
V- value type
- すべての実装されたインタフェース:
Iterable<V>,Collection<V>,List<V>,SLockable,SVariable,Unlockable
- 直系の既知のサブクラス:
SMovableListImpl
Represents the movable 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.-
ネストされたクラスの概要
ネストされたクラスクラスから継承されたネストされたクラス/インタフェース org.wcardinal.controller.data.SList
SList.Update<V> -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明abstract voidmove(int oldIndex, int newIndex) Moves the element at the indexoldIndexto the indexnewIndex.クラスから継承されたメソッド org.wcardinal.controller.data.SList
clearAndAdd, clearAndAddAll, replace, reset, toDirty, toDirtyクラスから継承されたメソッド 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
-
コンストラクタの詳細
-
SMovableList
public SMovableList()
-
-
メソッドの詳細
-
move
public abstract void move(int oldIndex, int newIndex) Moves the element at the indexoldIndexto the indexnewIndex.- パラメータ:
oldIndex- index of the element to be movednewIndex- index where the element is moved to- 例外:
IndexOutOfBoundsException- if the one of the indices is out of range (index < 0 || size() <= index)
-