Package org.xyou.xcommon.queue
Class XQueue<V>
- java.lang.Object
-
- org.xyou.xcommon.base.XBaseObject
-
- org.xyou.xcommon.queue.XQueue<V>
-
- All Implemented Interfaces:
java.io.Serializable
public final class XQueue<V> extends XBaseObject
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()booleanisFull()booleanoffer(V data)Vpoll()voidput(V data)booleanremove(V data)intsize()Vtake()java.util.List<V>take(@NonNull java.lang.Integer numData)-
Methods inherited from class org.xyou.xcommon.base.XBaseObject
equals, toString
-
-
-
-
Method Detail
-
isFull
public boolean isFull()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
take
public java.util.List<V> take(@NonNull @NonNull java.lang.Integer numData)
-
take
public V take()
-
poll
public V poll()
-
put
public void put(@NonNull V data)
-
offer
public boolean offer(@NonNull V data)
-
remove
public boolean remove(@NonNull V data)
-
-