|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.engine.content.FiFoQueue
public class FiFoQueue
Simple first in first out queue. Basically same as a LinkedList only without allowing null objects.
Field Summary | |
---|---|
private java.util.LinkedList<ContentObject> |
list
LinkedList to perform all the operations. |
Constructor Summary | |
---|---|
FiFoQueue()
|
Method Summary | ||
---|---|---|
boolean |
add(ContentObject content)
Calls LinkedList.add(Object) if content is not null. |
|
boolean |
addAll(java.util.Collection<? extends ContentObject> contentCollection)
Iterates over a collection and tries putting all objects into the list. |
|
void |
clear()
|
|
boolean |
contains(java.lang.Object content)
|
|
boolean |
containsAll(java.util.Collection<?> contentCollection)
|
|
ContentObject |
element()
|
|
boolean |
isEmpty()
|
|
java.util.Iterator<ContentObject> |
iterator()
|
|
boolean |
offer(ContentObject content)
Calls LinkedList.offer(Object) if content is not null. |
|
ContentObject |
peek()
|
|
ContentObject |
poll()
|
|
ContentObject |
remove()
|
|
boolean |
remove(java.lang.Object content)
|
|
boolean |
removeAll(java.util.Collection<?> contentCollection)
|
|
boolean |
retainAll(java.util.Collection<?> contentCollection)
|
|
int |
size()
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Field Detail |
---|
private java.util.LinkedList<ContentObject> list
Constructor Detail |
---|
public FiFoQueue()
Method Detail |
---|
public final ContentObject element()
element
in interface java.util.Queue<ContentObject>
LinkedList.element()
public final boolean offer(ContentObject content)
offer
in interface java.util.Queue<ContentObject>
content
- ContentObject to put into the listpublic final ContentObject peek()
peek
in interface java.util.Queue<ContentObject>
LinkedList.peek()
public final ContentObject poll()
poll
in interface java.util.Queue<ContentObject>
LinkedList.poll()
public final ContentObject remove()
remove
in interface java.util.Queue<ContentObject>
LinkedList.remove()
public final boolean add(ContentObject content)
add
in interface java.util.Collection<ContentObject>
add
in interface java.util.Queue<ContentObject>
content
- The ContentObject to put into the list
public final boolean addAll(java.util.Collection<? extends ContentObject> contentCollection)
addAll
in interface java.util.Collection<ContentObject>
contentCollection
- to be added into the list
public final void clear()
clear
in interface java.util.Collection<ContentObject>
LinkedList.clear()
public final boolean contains(java.lang.Object content)
contains
in interface java.util.Collection<ContentObject>
LinkedList.contains(Object)
public final boolean containsAll(java.util.Collection<?> contentCollection)
containsAll
in interface java.util.Collection<ContentObject>
LinkedList.containsAll(Collection>)
public final boolean isEmpty()
isEmpty
in interface java.util.Collection<ContentObject>
LinkedList.isEmpty();
public final java.util.Iterator<ContentObject> iterator()
iterator
in interface java.lang.Iterable<ContentObject>
iterator
in interface java.util.Collection<ContentObject>
LinkedList.iterator()
public final boolean remove(java.lang.Object content)
remove
in interface java.util.Collection<ContentObject>
LinkedList.remove(Object)
public final boolean removeAll(java.util.Collection<?> contentCollection)
removeAll
in interface java.util.Collection<ContentObject>
LinkedList.removeAll(Collection>)
public final boolean retainAll(java.util.Collection<?> contentCollection)
retainAll
in interface java.util.Collection<ContentObject>
LinkedList.retainAll(Collection>)
public final int size()
size
in interface java.util.Collection<ContentObject>
LinkedList.size();
public final java.lang.Object[] toArray()
toArray
in interface java.util.Collection<ContentObject>
LinekdList.toArray();
public final <T> T[] toArray(T[] type)
toArray
in interface java.util.Collection<ContentObject>
LinkedList.toArray(T[] type);
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc