Package eu.mihosoft.vmf.runtime.core
Interface Content
-
public interface Content
Content of this object graph.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
deepCopy()
Returns a deep copy of this object.VIterator
iterator()
Returns an iterator that traverses the object graph (depth first) using theVIterator.IterationStrategy.UNIQUE_PROPERTY
iteration strategy.VIterator
iterator(VIterator.IterationStrategy strategy)
Returns an iterator that traverses the object graph (depth first) using the specified iteration strategy.eu.mihosoft.vcollections.VList<VObject>
referencedBy()
Returns an unmodifiable list of all objects that reference this object.eu.mihosoft.vcollections.VList<VObject>
references()
Returns an unmodifiable list of all objects that are referenced by this object.<T> T
shallowCopy()
Returns a shallow copy of this object.java.util.stream.Stream<VObject>
stream()
Returns a stream that contains all elements of the object graph (depth first) using theVIterator.IterationStrategy.UNIQUE_PROPERTY
iteration strategy.java.util.stream.Stream<VObject>
stream(VIterator.IterationStrategy strategy)
Returns a stream that contains all elements of the object graph (depth first) using the specified iteration strategy.<T extends VObject>
java.util.stream.Stream<T>stream(java.lang.Class<T> type)
Returns a stream that contains all elements of the object graph (depth first) that implement/extend the specified type.<T extends VObject>
java.util.stream.Stream<T>stream(java.lang.Class<T> type, VIterator.IterationStrategy strategy)
Returns a stream that contains all elements of the object graph (depth first) that implement/extend the specified type.
-
-
-
Method Detail
-
iterator
VIterator iterator()
Returns an iterator that traverses the object graph (depth first) using theVIterator.IterationStrategy.UNIQUE_PROPERTY
iteration strategy.- Returns:
- an iterator that traverses the object graph
-
iterator
VIterator iterator(VIterator.IterationStrategy strategy)
Returns an iterator that traverses the object graph (depth first) using the specified iteration strategy.- Parameters:
strategy
- iteration strategy- Returns:
- an iterator that traverses the object graph
-
stream
java.util.stream.Stream<VObject> stream()
Returns a stream that contains all elements of the object graph (depth first) using theVIterator.IterationStrategy.UNIQUE_PROPERTY
iteration strategy.- Returns:
- a stream that contains all elements of the object graph
-
stream
java.util.stream.Stream<VObject> stream(VIterator.IterationStrategy strategy)
Returns a stream that contains all elements of the object graph (depth first) using the specified iteration strategy.- Parameters:
strategy
- iteration strategy- Returns:
- a stream that contains all elements of the object graph
-
stream
<T extends VObject> java.util.stream.Stream<T> stream(java.lang.Class<T> type)
Returns a stream that contains all elements of the object graph (depth first) that implement/extend the specified type. It maps all elements to the specified type, i.e. returnsStream<T>
.- Type Parameters:
T
- element type- Parameters:
type
- type for filtering and mapping- Returns:
- a stream of type
, i.e. Stream<T>
-
stream
<T extends VObject> java.util.stream.Stream<T> stream(java.lang.Class<T> type, VIterator.IterationStrategy strategy)
Returns a stream that contains all elements of the object graph (depth first) that implement/extend the specified type. It maps all elements to the specified type, i.e. returnsStream<T>
using the specified iteration strategy.- Type Parameters:
T
- element type- Parameters:
type
- type for filtering and mappingstrategy
- iteration strategy- Returns:
- a stream of type
, i.e. Stream<T>
-
referencedBy
eu.mihosoft.vcollections.VList<VObject> referencedBy()
Returns an unmodifiable list of all objects that reference this object.- Returns:
- an unmodifiable list of all objects that reference this object
-
references
eu.mihosoft.vcollections.VList<VObject> references()
Returns an unmodifiable list of all objects that are referenced by this object.- Returns:
- an unmodifiable list of all objects that are referenced by this object.
-
deepCopy
<T> T deepCopy()
Returns a deep copy of this object.- Returns:
- a deep copy of this object
-
shallowCopy
<T> T shallowCopy()
Returns a shallow copy of this object.- Returns:
- a shallow copy of this object
-
-