Package org.hcjf.cloud.impl
Class QueueImpl<O>
- java.lang.Object
-
- org.hcjf.cloud.impl.QueueImpl<O>
-
- All Implemented Interfaces:
java.lang.Iterable<O>,java.util.Collection<O>,java.util.Queue<O>
public class QueueImpl<O> extends java.lang.Object implements java.util.Queue<O>- Author:
- javaito
-
-
Constructor Summary
Constructors Constructor Description QueueImpl(java.lang.String name)
-
Method Summary
Modifier and Type Method Description booleanadd(O value)booleanaddAll(java.util.Collection<? extends O> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)Oelement()booleanisEmpty()java.util.Iterator<O>iterator()booleanoffer(O o)Opeek()Opoll()Oremove()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<O>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Collection<O>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<O>
-
iterator
public java.util.Iterator<O> iterator()
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<O>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfacejava.util.Collection<O>
-
add
public boolean add(O value)
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<O>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAllin interfacejava.util.Collection<O>
-
addAll
public boolean addAll(java.util.Collection<? extends O> c)
- Specified by:
addAllin interfacejava.util.Collection<O>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAllin interfacejava.util.Collection<O>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAllin interfacejava.util.Collection<O>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<O>
-
-