public class DetachedPath extends MutablePath implements Attachable<Path>
Attachable.Exceptions, Attachable.Method
Path.Exceptions
labels, objects
Modifier | Constructor and Description |
---|---|
protected |
DetachedPath(Path path,
boolean withProperties) |
Modifier and Type | Method and Description |
---|---|
Path |
attach(Function<Attachable<Path>,Path> method)
Provide a way to attach an
Attachable implementation to a host. |
Path |
get()
Get the raw object trying to be attached.
|
clone, equals, extend, extend, get, get, hashCode, hasLabel, head, isEmpty, iterator, labels, make, objects, retract, size, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, get, isSimple, popEquals, stream
forEach, spliterator
protected DetachedPath(Path path, boolean withProperties)
public Path get()
Attachable
get
in interface Attachable<Path>
public Path attach(Function<Attachable<Path>,Path> method)
Attachable
Attachable
implementation to a host. Note that the context of the host
is not defined by way of the attachment method itself that is supplied as an argument. It is up to the
implementer to supply that context.attach
in interface Attachable<Path>
method
- a Function
that takes an Attachable
and returns the "re-attached" objectmethod
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.