/** * If the path is not owned by this instance does a deep copy and marks the * path as owned. */ private void own() { if (!pathOwned) { setData(new PathRep(getData())); pathOwned = true; } }
/** * If the path is not owned by this instance does a deep copy and marks the * path as owned. */ private void own() { if (!pathOwned) { setData(new PathRep(getData())); pathOwned = true; } }
/** * Create a mutable path as a prefix of the given path * * @param x Source path * @param pfix If positive, the new path is a prefix of x containing pfix * elements. If negative, the new path is a prefix of x with last -pfix * elements removed. */ public MutablePath(Path x, int pfix) { setData(new PathRep(x.getData(), pfix)); pathOwned = true; }
/** * Create a mutable path as a prefix of the given path * * @param x Source path * @param pfix If positive, the new path is a prefix of x containing pfix * elements. If negative, the new path is a prefix of x with last -pfix * elements removed. */ public MutablePath(Path x, int pfix) { setData(new PathRep(x.getData(), pfix)); pathOwned = true; }
/** * Create a mutable path as a prefix of the given path * * @param x Source path * @param pfix If positive, the new path is a prefix of x containing pfix * elements. If negative, the new path is a prefix of x with last -pfix * elements removed. */ public MutablePath(Path x, int pfix) { setData(new PathRep(x.getData(), pfix)); pathOwned = true; }
/** * If the path is not owned by this instance does a deep copy and marks the * path as owned. */ private void own() { if (!pathOwned) { setData(new PathRep(getData())); pathOwned = true; } }
public MutablePath(MutablePath x) { setData(new PathRep(x.getData())); pathOwned = true; }
public MutablePath(MutablePath x) { setData(new PathRep(x.getData())); pathOwned = true; }
public MutablePath(MutablePath x) { setData(new PathRep(x.getData())); pathOwned = true; }