Package de.willuhn.util
Class History
- java.lang.Object
-
- de.willuhn.util.Queue
-
- de.willuhn.util.History
-
public class History extends Queue
Bildet eine History ab, die immer eine definierte Anzahl der letzten Elemente enthaelt.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.willuhn.util.Queue
Queue.QueueFullException
-
-
Field Summary
-
Fields inherited from class de.willuhn.util.Queue
CAPACITY_MAX, CAPACITY_MIN
-
-
Constructor Summary
Constructors Constructor Description History(int capacity)
ct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
push(java.lang.Object o)
Fuegt der Queue ein weiteres Objekt hinzu.
-
-
-
Method Detail
-
push
public void push(java.lang.Object o)
Description copied from class:Queue
Fuegt der Queue ein weiteres Objekt hinzu. Ist die Queue voll, wird eine Exception geworfen- Overrides:
push
in classQueue
- Parameters:
o
- das hinzuzufuegende Objekt.- See Also:
Queue.push(java.lang.Object)
-
-