public AStarSegmentReplacer<ST> setSegmentReplacer(AStarSegmentReplacer<ST> replacer) {
		final AStarSegmentReplacer<ST> old = this.segmentReplacer;
		this.segmentReplacer = replacer;
		return old;
	}
public AStarSegmentReplacer < ST > setSegmentReplacer ( AStarSegmentReplacer < ST > replacer ) { final AStarSegmentReplacer < ST > old = this . segmentReplacer ; this . segmentReplacer = replacer ; return old ; }
Set the object to use to replace the segments in the shortest path.

@param replacer is the new replacer.
@return the old replacer