クラス SQueueImpl<V>
java.lang.Object
org.wcardinal.controller.data.SROQueue<T>
org.wcardinal.controller.data.SQueue<V>
org.wcardinal.controller.data.internal.SQueueImpl<V>
- すべての実装されたインタフェース:
Iterable<V>,Collection<V>,Queue<V>,SContainer<SQueueValues<V>,,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>> SQueueContainer<V>,SLockable,SVariable,ControllerDynamicInfoHandler,Unlockable
@Component
@Scope("prototype")
public class SQueueImpl<V>
extends SQueue<V>
implements SQueueContainer<V>, ControllerDynamicInfoHandler
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明booleanbooleanaddAll(Collection<? extends V> elements) voidvoidclear()booleanclearAndAdd(V element) Clear this queue and then appends the specified element to this queue.booleanclearAndAddAll(Collection<? extends V> elements) Clear this queue and then appends the specified elements to this queue.booleanclearAndOffer(V value) Clear this queue and then appends the specified element to this queue without raising an exception.booleanclearAndOfferAll(Collection<? extends V> values) Clear this queue and then appends the specified elements to this queue.booleancompact()booleanbooleancontainsAll(Collection<?> elements) element()booleanbooleanequals(Collection<? extends V> other) Returns true if the specified target is equal to this.intReturns the capacity.getLock()getName()longorg.springframework.core.ResolvableTypegetType()getValue()voidhandle(Object origin, Map<String, SData> nameToSData, Map<String, DynamicDataObject> nameToData, long senderId) voidhandle(Object origin, SetDynamicDataMap map) voidinit(String name, SContainerParent parent, AutoCloseableReentrantLock lock, org.springframework.core.ResolvableType type, EnumSet<Property> properties) voidInitialize this.voidinitialize(Object except) booleanisEmpty()booleanReturns true if this is initialized.booleanisLocked()Returns true if this instance is locked.booleanReturns true if this is non-null.booleanReturns true if this is read-only.booleanisSoft()iterator()lock()Locks this instance.booleanbooleanbooleanonAddAll(Collection<? extends V> values) voidonCapacity(int capacity) voidonChange()voidonClear()voidonInitialize(Object except) voidonPatches(Object except, SPatchesPacked<SQueueValues<V>, SQueuePatch<V>> patches) voidonRemove()peek()poll()remove()booleanbooleanremoveAll(Collection<?> targets) voidremoveOrigin(Object origin) booleanretainAll(Collection<?> targets) intsetCapacity(int newCapacity) Sets to the specified capacity.voidsetRevision(long revision) intsize()Object[]toArray()<U> U[]toArray(U[] array) toString()booleantryLock()Tries to lock this instance.booleanTries to lock this instance.voidunlock()Unlocks this instance.voidUnlocks this instance.クラスから継承されたメソッド java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitインタフェースから継承されたメソッド java.util.Collection
hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
コンストラクタの詳細
-
SQueueImpl
public SQueueImpl()
-
-
メソッドの詳細
-
init
public void init(String name, SContainerParent parent, AutoCloseableReentrantLock lock, org.springframework.core.ResolvableType type, EnumSet<Property> properties) - 定義:
initインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
getName
- 定義:
getNameインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
getRevision
public long getRevision()- 定義:
getRevisionインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
setRevision
public void setRevision(long revision) - 定義:
setRevisionインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
getValue
- 定義:
getValueインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
getParent
- 定義:
getParentインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
getLock
- 定義:
getLockインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
getType
public org.springframework.core.ResolvableType getType()- 定義:
getTypeインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
addOrigin
- 定義:
addOriginインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
removeOrigin
- 定義:
removeOriginインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
handle
- 定義:
handleインタフェース内ControllerDynamicInfoHandler
-
handle
public void handle(Object origin, Map<String, SData> nameToSData, Map<String, DynamicDataObject> nameToData, long senderId) - 定義:
handleインタフェース内ControllerDynamicInfoHandler
-
isSoft
public boolean isSoft()- 定義:
isSoftインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
compact
public boolean compact()- 定義:
compactインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
onAdd
- 定義:
onAddインタフェース内SQueueContainer<V>
-
onAddAll
- 定義:
onAddAllインタフェース内SQueueContainer<V>
-
onRemove
public void onRemove()- 定義:
onRemoveインタフェース内SQueueContainer<V>
-
onClear
public void onClear()- 定義:
onClearインタフェース内SQueueContainer<V>
-
onCapacity
public void onCapacity(int capacity) - 定義:
onCapacityインタフェース内SQueueContainer<V>
-
onChange
public void onChange()- 定義:
onChangeインタフェース内SQueueContainer<V>
-
onInitialize
- 定義:
onInitializeインタフェース内SQueueContainer<V>
-
onPatches
- 定義:
onPatchesインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
add
-
addAll
- 定義:
addAllインタフェース内Collection<V>
-
clear
public void clear()- 定義:
clearインタフェース内Collection<V>
-
contains
- 定義:
containsインタフェース内Collection<V>
-
containsAll
- 定義:
containsAllインタフェース内Collection<V>
-
isEmpty
public boolean isEmpty()- 定義:
isEmptyインタフェース内Collection<V>
-
iterator
-
remove
- 定義:
removeインタフェース内Collection<V>
-
removeAll
- 定義:
removeAllインタフェース内Collection<V>
-
retainAll
- 定義:
retainAllインタフェース内Collection<V>
-
size
public int size()- 定義:
sizeインタフェース内Collection<V>
-
toArray
- 定義:
toArrayインタフェース内Collection<V>
-
toArray
public <U> U[] toArray(U[] array) - 定義:
toArrayインタフェース内Collection<V>
-
isReadOnly
public boolean isReadOnly()インタフェースからコピーされた説明:SVariableReturns true if this is read-only.- 定義:
isReadOnlyインタフェース内SVariable- 戻り値:
- true if this is read-only
-
isNonNull
public boolean isNonNull()インタフェースからコピーされた説明:SVariableReturns true if this is non-null. -
isInitialized
public boolean isInitialized()インタフェースからコピーされた説明:SVariableReturns true if this is initialized.- 定義:
isInitializedインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>> - 定義:
isInitializedインタフェース内SVariable- 戻り値:
- true if this is initialized
-
initialize
public void initialize()インタフェースからコピーされた説明:SVariableInitialize this.- 定義:
initializeインタフェース内SVariable
-
initialize
- 定義:
initializeインタフェース内SContainer<SQueueValues<V>,SPatchesPacked<SQueueValues<V>, SQueuePatch<V>>>
-
lock
インタフェースからコピーされた説明:SLockableLocks this instance. -
tryLock
public boolean tryLock()インタフェースからコピーされた説明:SLockableTries to lock this instance. -
tryLock
インタフェースからコピーされた説明:SLockableTries to lock this instance. -
isLocked
public boolean isLocked()インタフェースからコピーされた説明:SLockableReturns true if this instance is locked. -
unlock
public void unlock()インタフェースからコピーされた説明:SLockableUnlocks this instance.- 定義:
unlockインタフェース内SLockable- 定義:
unlockインタフェース内Unlockable
-
unlock
インタフェースからコピーされた説明:SLockableUnlocks this instance. -
toString
-
equals
- 定義:
equalsインタフェース内Collection<V>- オーバーライド:
equalsクラス内Object
-
equals
クラスからコピーされた説明:SROQueueReturns true if the specified target is equal to this. -
clearAndAdd
クラスからコピーされた説明:SROQueueClear this queue and then appends the specified element to this queue.- 定義:
clearAndAddクラス内SROQueue<V>- パラメータ:
element- element to be appended to this queue- 戻り値:
- true
-
clearAndAddAll
クラスからコピーされた説明:SROQueueClear this queue and then appends the specified elements to this queue.- 定義:
clearAndAddAllクラス内SROQueue<V>- パラメータ:
elements- elements to be appended to this queue- 戻り値:
- true if this queue is changed as a result of the call
-
element
-
offer
-
clearAndOffer
クラスからコピーされた説明:SROQueueClear this queue and then appends the specified element to this queue without raising an exception.- 定義:
clearAndOfferクラス内SROQueue<V>- パラメータ:
value- element to be appended to this queue- 戻り値:
- true if the specified element is successfully appended
-
clearAndOfferAll
クラスからコピーされた説明:SROQueueClear this queue and then appends the specified elements to this queue.- 定義:
clearAndOfferAllクラス内SROQueue<V>- パラメータ:
values- elements to be appended to this queue- 戻り値:
- true if this queue is changed as a result of the call
-
peek
-
poll
-
remove
-
setCapacity
public int setCapacity(int newCapacity) クラスからコピーされた説明:SROQueueSets to the specified capacity. Older elements are removed to fit to the specified capacity if the number of elements this queue has is larger than the specified capacity.- 定義:
setCapacityクラス内SROQueue<V>- パラメータ:
newCapacity- the new capacity- 戻り値:
- the previous capacity
-
getCapacity
public int getCapacity()クラスからコピーされた説明:SROQueueReturns the capacity.- 定義:
getCapacityクラス内SROQueue<V>- 戻り値:
- the capacity
-