Class Queue

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

public final class Queue
extends java.lang.Object
implements SendInterface
Implementierung einer LIFO-Queue
  • Constructor Summary

    Constructors
    Constructor Description
    Queue()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object pop()
    Element aus der LIFO-Liste entnehmen
    void push​(java.lang.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
  • Constructor Details

    • Queue

      public Queue()
  • Method Details

    • push

      public void push​(java.lang.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 java.lang.Object pop()
      Element aus der LIFO-Liste entnehmen
      Returns:
      Object, welches aus der LIFO-Liste entfernt wurde