vishnu.patterns
Class ArrayListPipe<T>

java.lang.Object
  extended by vishnu.patterns.ArrayListPipe<T>
All Implemented Interfaces:
Pipe<T>

public class ArrayListPipe<T>
extends java.lang.Object
implements Pipe<T>

 

Constructor Summary
ArrayListPipe()
           
 
Method Summary
 T current()
           
 boolean isEmpty()
           
 void leave(T element)
           
 void move()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayListPipe

public ArrayListPipe()
Method Detail

move

public void move()
Specified by:
move in interface Pipe<T>

isEmpty

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

current

public T current()
Specified by:
current in interface Pipe<T>

leave

public void leave(T element)
Specified by:
leave in interface Pipe<T>