lrs.visitor
Class Remove

java.lang.Object
  extended by lrs.visitor.Remove
All Implemented Interfaces:
IAlgo

public class Remove
extends java.lang.Object
implements IAlgo

Remove all occurances of the item specified as input, if found.

Author:
Mathias Ricken

Field Summary
static Remove Singleton
           
 
Constructor Summary
protected Remove()
           
 
Method Summary
 java.lang.Object emptyCase(LRStruct host, java.lang.Object inp)
          Operates on an empty LRStruct host, given an input object.
 java.lang.Object nonEmptyCase(LRStruct host, java.lang.Object inp)
          Operates on a non-empty LRStruct host, given an input object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Singleton

public static final Remove Singleton
Constructor Detail

Remove

protected Remove()
Method Detail

emptyCase

public java.lang.Object emptyCase(LRStruct host,
                                  java.lang.Object inp)
Operates on an empty LRStruct host, given an input object.

Specified by:
emptyCase in interface IAlgo
Parameters:
host - an empty LRStruct.
inp - item to remove.
Returns:
null

nonEmptyCase

public java.lang.Object nonEmptyCase(LRStruct host,
                                     java.lang.Object inp)
Operates on a non-empty LRStruct host, given an input object.

Specified by:
nonEmptyCase in interface IAlgo
Parameters:
host - a non-empty LRStruct.
inp - item to remove.
Returns:
null