Class 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

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • Queue

        public Queue()
    • Method Detail

      • 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