|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ArraySchlange
public class ArraySchlange
Implementation des Interface Schlange mit Hilfe eines Arrays
Field Summary | |
---|---|
private int |
count
|
private int |
head
|
private java.lang.Object[] |
inhalt
|
Constructor Summary | |
---|---|
ArraySchlange(int N)
|
Method Summary | |
---|---|
void |
deq()
|
boolean |
empty()
|
void |
enq(java.lang.Object x)
|
java.lang.Object |
front()
|
private boolean |
full()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Object[] inhalt
private int head
private int count
Constructor Detail |
---|
public ArraySchlange(int N)
Method Detail |
---|
private boolean full()
public boolean empty()
empty
in interface Schlange
public void enq(java.lang.Object x)
enq
in interface Schlange
public void deq()
deq
in interface Schlange
public java.lang.Object front()
front
in interface Schlange
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |