edu.rice.comp211.laundry.list
Interface BiListIVisitor<T,R>

Type Parameters:
T - The type of elements held by the list
R - The return type of this visitor

public interface BiListIVisitor<T,R>

Visitor to a BiListI

Author:
swong

Method Summary
 R forEmpty(BiListI<T> host)
          empty list case
 R forNonEmpty(BiListI<T> host)
          non-empty list case
 

Method Detail

forEmpty

R forEmpty(BiListI<T> host)
empty list case

Parameters:
host - the empty host list
Returns:
the return value of the visitor for this case

forNonEmpty

R forNonEmpty(BiListI<T> host)
non-empty list case

Parameters:
host - the non-empty host list
Returns:
the return value of the visitor for this case