org.sourceforge.jemm.collections.internal
Class RemoveResponse

java.lang.Object
  extended by org.sourceforge.jemm.lifecycle.TypeResponse<RemoveResponse>
      extended by org.sourceforge.jemm.collections.internal.RemoveResponse
All Implemented Interfaces:
java.io.Serializable, Encodable<RemoveResponse>, Visitable

public class RemoveResponse
extends TypeResponse<RemoveResponse>

HashContainer ContainsResult, three options 1) removed = true, possibles = null ( successfully found and removed (exact match)) 2) removed = false, possibles = null ( definately not found, no action ) 3) removed = false, possibles != null ( uncertain, possible matches returned )

Author:
Rory Graves
See Also:
Serialized Form

Constructor Summary
RemoveResponse(boolean removed)
           
RemoveResponse(boolean removed, java.lang.Object[] potentialMatches)
           
 
Method Summary
 RemoveResponse encode(ValueEncoder encoder)
           
 java.lang.Object[] getPotentialMatches()
           
 void visit(ValueVisitor visitor)
           
 boolean wasRemoved()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveResponse

public RemoveResponse(boolean removed)

RemoveResponse

public RemoveResponse(boolean removed,
                      java.lang.Object[] potentialMatches)
Method Detail

encode

public RemoveResponse encode(ValueEncoder encoder)

visit

public void visit(ValueVisitor visitor)

wasRemoved

public boolean wasRemoved()

getPotentialMatches

public java.lang.Object[] getPotentialMatches()


Copyright © 2009. All Rights Reserved.