/** * Basis for the copy constructor. * * <p> * This registers the newly created {@link Pipe} with the {@link PipeCloner} * through {@link PipeCloner#add(Pipe, Pipe)}. */ protected AbstractPipeImpl(Pipe that, PipeCloner cloner) { cloner.add(that,this); }
/** * Basis for the copy constructor. * * <p> * This registers the newly created {@link Pipe} with the {@link PipeCloner} * through {@link PipeCloner#add(Pipe, Pipe)}. */ protected AbstractPipeImpl(Pipe that, PipeCloner cloner) { cloner.add(that,this); }
/** * Basis for the copy constructor. * * <p> * This registers the newly created {@link Pipe} with the {@link PipeCloner} * through {@link PipeCloner#add(Pipe, Pipe)}. */ protected AbstractPipeImpl(Pipe that, PipeCloner cloner) { cloner.add(that,this); }
public Pipe copy(PipeCloner pipeCloner) { Pipe clonedNextPipe = null; if (nextPipe != null) { clonedNextPipe = pipeCloner.copy(nextPipe); } Pipe copied = new XWSSClientPipe(this); ((XWSSClientPipe)copied).setNextPipe(clonedNextPipe); pipeCloner.add(this, copied); return copied; }
public Pipe copy(PipeCloner pipeCloner) { Pipe clonedNextPipe = null; if (nextPipe != null) { clonedNextPipe = pipeCloner.copy(nextPipe); } Pipe copied = new XWSSServerPipe(this); ((XWSSServerPipe)copied).setNextPipe(clonedNextPipe); pipeCloner.add(this, copied); return copied; }