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 java.lang.StringgetName()java.lang.IntegergetSizeMax()booleanisEmpty()booleanisFull()booleanoffer(V data)Vpoll()voidput(V data)booleanremove(V data)intsize()Vtake()java.util.List<V>take(int numData)-
Methods inherited from class org.xyou.xcommon.base.XBaseObject
canEqual, equals, hashCode, toString
-
-
-
-
Method Detail
-
isFull
public boolean isFull()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
take
public java.util.List<V> take(int numData)
-
take
public V take()
-
poll
public V poll()
-
put
public void put(V data)
-
offer
public boolean offer(V data)
-
remove
public boolean remove(V data)
-
getName
public java.lang.String getName()
-
getSizeMax
public java.lang.Integer getSizeMax()
-
-