|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.util.Queue
public class Queue
Queue.
Constructor Summary | |
---|---|
Queue(int maxSize)
Constructor |
|
Queue(int maxSize,
Collection initials)
Constructor |
Method Summary | |
---|---|
boolean |
contains(Object object)
Returns true if queue contains the given object |
Object |
get()
Gets first element of the queue |
boolean |
isEmpty()
Returns true if the queue is empty |
void |
put(Object object)
Puts object at the end of the queue |
int |
size()
Returns size of the queue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Queue(int maxSize)
maxSize
- maximal size of the queuepublic Queue(int maxSize, Collection initials)
maxSize
- maximal size of the queueinitials
- initial contentMethod Detail |
---|
public void put(Object object) throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public boolean contains(Object object)
public Object get()
public int size()
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |