de.bsvrz.pat.datgen.generator.main
Class Queue

java.lang.Object
  extended by de.bsvrz.pat.datgen.generator.main.Queue
All Implemented Interfaces:
SendInterface

public final class Queue
extends Object
implements SendInterface

Implementierung einer LIFO-Queue

Author:
Kappich Systemberatung

Field Summary
private  LinkedList _queue
          Die Queue
 
Constructor Summary
Queue()
           
 
Method Summary
 Object pop()
          Element aus der LIFO-Liste entnehmen
 void push(Object o)
          Element in die LIFO-Liste schreiben
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_queue

private LinkedList _queue
Die Queue

Constructor Detail

Queue

public Queue()
Method Detail

push

public void push(Object o)
Element in die LIFO-Liste schreiben

Specified by:
push in interface SendInterface
Parameters:
o - Object, welches in die LIFO-Liste geschrieben wird.

pop

public Object pop()
Element aus der LIFO-Liste entnehmen

Returns:
Object, welches aus der LIFO-Liste entfernt wurde