ch.bind.philib.io
Class RingImpl<T>

java.lang.Object
  extended by ch.bind.philib.io.RingImpl<T>
All Implemented Interfaces:
Ring<T>

public final class RingImpl<T>
extends Object
implements Ring<T>

TODO

Author:
Philipp Meinen

Constructor Summary
RingImpl()
           
 
Method Summary
 void addBack(T value)
           
 void addFront(T value)
           
 void clear()
           
 boolean isEmpty()
           
 T poll()
           
 void shrink()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RingImpl

public RingImpl()
Method Detail

addBack

public void addBack(T value)
Specified by:
addBack in interface Ring<T>

addFront

public void addFront(T value)
Specified by:
addFront in interface Ring<T>

poll

public T poll()
Specified by:
poll in interface Ring<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Ring<T>

size

public int size()
Specified by:
size in interface Ring<T>

clear

public void clear()
Specified by:
clear in interface Ring<T>

shrink

public void shrink()
Specified by:
shrink in interface Ring<T>


Copyright © 2013. All Rights Reserved.