setLastRightTuple( rightTuple );
}
}
public void removeRightTuple( RightTuple rightTuple ) {
RightTuple previous = rightTuple.getHandlePrevious();
RightTuple next = rightTuple.getHandleNext();
if ( previous != null && next != null ) {
// remove from middle
previous.setHandleNext( next );
next.setHandlePrevious( previous );
} else if ( next != null ) {
// remove from first
next.setHandlePrevious( null );
setFirstRightTuple( next );
} else if ( previous != null ) {
// remove from end
previous.setHandleNext( null );
setLastRightTuple( previous );