Package one.microstream.util.traversing
Class ObjectGraphTraverserBuilder.Default
- java.lang.Object
-
- one.microstream.util.traversing.ObjectGraphTraverserBuilder.Default
-
- All Implemented Interfaces:
ObjectGraphTraverserBuilder
- Enclosing interface:
- ObjectGraphTraverserBuilder
public static class ObjectGraphTraverserBuilder.Default extends Object implements ObjectGraphTraverserBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.util.traversing.ObjectGraphTraverserBuilder
ObjectGraphTraverserBuilder.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.util.traversing.ObjectGraphTraverserBuilder
apply, modeFull, modeLeaf, modeNode, mutate, registerTraverser, registerTraverserForType, registerTraverserForTypePolymorphic, root
-
-
-
-
Method Detail
-
initializerLogic
public ObjectGraphTraverserBuilder initializerLogic(Runnable logic)
- Specified by:
initializerLogic
in interfaceObjectGraphTraverserBuilder
-
initializerLogic
public Runnable initializerLogic()
- Specified by:
initializerLogic
in interfaceObjectGraphTraverserBuilder
-
finalizerLogic
public ObjectGraphTraverserBuilder finalizerLogic(Runnable logic)
- Specified by:
finalizerLogic
in interfaceObjectGraphTraverserBuilder
-
finalizerLogic
public Runnable finalizerLogic()
- Specified by:
finalizerLogic
in interfaceObjectGraphTraverserBuilder
-
predicateHandle
public Predicate<Object> predicateHandle()
- Specified by:
predicateHandle
in interfaceObjectGraphTraverserBuilder
-
predicateHandle
public ObjectGraphTraverserBuilder predicateHandle(Predicate<Object> predicate)
- Specified by:
predicateHandle
in interfaceObjectGraphTraverserBuilder
-
skip
public TraversalFilter<TraversalPredicateSkip> skip()
- Specified by:
skip
in interfaceObjectGraphTraverserBuilder
-
node
public TraversalFilter<TraversalPredicateNode> node()
- Specified by:
node
in interfaceObjectGraphTraverserBuilder
-
leaf
public TraversalFilter<TraversalPredicateLeaf> leaf()
- Specified by:
leaf
in interfaceObjectGraphTraverserBuilder
-
full
public TraversalFilter<TraversalPredicateFull> full()
- Specified by:
full
in interfaceObjectGraphTraverserBuilder
-
traversersPerInstance
public HashTable<Object,TypeTraverser<?>> traversersPerInstance()
- Specified by:
traversersPerInstance
in interfaceObjectGraphTraverserBuilder
-
traversersPerConcreteType
public HashTable<Class<?>,TypeTraverser<?>> traversersPerConcreteType()
- Specified by:
traversersPerConcreteType
in interfaceObjectGraphTraverserBuilder
-
traversersPerPolymorphType
public HashTable<Class<?>,TypeTraverser<?>> traversersPerPolymorphType()
- Specified by:
traversersPerPolymorphType
in interfaceObjectGraphTraverserBuilder
-
fieldSelector
public TraversalFieldSelector fieldSelector()
- Specified by:
fieldSelector
in interfaceObjectGraphTraverserBuilder
-
fieldPredicate
public Predicate<? super Field> fieldPredicate()
- Specified by:
fieldPredicate
in interfaceObjectGraphTraverserBuilder
-
alreadyHandledProvider
public Function<XGettingCollection<Object>,XSet<Object>> alreadyHandledProvider()
- Specified by:
alreadyHandledProvider
in interfaceObjectGraphTraverserBuilder
-
typeTraverserCreator
public TypeTraverser.Creator typeTraverserCreator()
- Specified by:
typeTraverserCreator
in interfaceObjectGraphTraverserBuilder
-
acceptor
public TraversalAcceptor acceptor()
- Specified by:
acceptor
in interfaceObjectGraphTraverserBuilder
-
acceptorPredicate
public Predicate<Object> acceptorPredicate()
- Specified by:
acceptorPredicate
in interfaceObjectGraphTraverserBuilder
-
acceptorLogic
public Consumer<Object> acceptorLogic()
- Specified by:
acceptorLogic
in interfaceObjectGraphTraverserBuilder
-
mutator
public TraversalMutator mutator()
- Specified by:
mutator
in interfaceObjectGraphTraverserBuilder
-
mutatorPredicate
public Predicate<Object> mutatorPredicate()
- Specified by:
mutatorPredicate
in interfaceObjectGraphTraverserBuilder
-
mutatorLogic
public Function<Object,?> mutatorLogic()
- Specified by:
mutatorLogic
in interfaceObjectGraphTraverserBuilder
-
mutationListener
public MutationListener mutationListener()
- Specified by:
mutationListener
in interfaceObjectGraphTraverserBuilder
-
traversalMode
public TraversalMode traversalMode()
- Specified by:
traversalMode
in interfaceObjectGraphTraverserBuilder
-
referenceHandlerProvider
public TraversalReferenceHandlerProvider referenceHandlerProvider()
- Specified by:
referenceHandlerProvider
in interfaceObjectGraphTraverserBuilder
-
roots
public Object[] roots()
- Specified by:
roots
in interfaceObjectGraphTraverserBuilder
-
fieldSelector
public ObjectGraphTraverserBuilder fieldSelector(TraversalFieldSelector fieldSelector)
- Specified by:
fieldSelector
in interfaceObjectGraphTraverserBuilder
-
fieldPredicate
public ObjectGraphTraverserBuilder fieldPredicate(Predicate<? super Field> traversableFieldSelector)
- Specified by:
fieldPredicate
in interfaceObjectGraphTraverserBuilder
-
alreadyHandledProvider
public ObjectGraphTraverserBuilder alreadyHandledProvider(Function<XGettingCollection<Object>,XSet<Object>> alreadyHandledProvider)
- Specified by:
alreadyHandledProvider
in interfaceObjectGraphTraverserBuilder
-
typeTraverserCreator
public ObjectGraphTraverserBuilder typeTraverserCreator(TypeTraverser.Creator typeTraverserCreator)
- Specified by:
typeTraverserCreator
in interfaceObjectGraphTraverserBuilder
-
acceptor
public ObjectGraphTraverserBuilder acceptor(TraversalAcceptor acceptor)
- Specified by:
acceptor
in interfaceObjectGraphTraverserBuilder
-
acceptorPredicate
public ObjectGraphTraverserBuilder acceptorPredicate(Predicate<Object> acceptorPredicate)
- Specified by:
acceptorPredicate
in interfaceObjectGraphTraverserBuilder
-
acceptorLogic
public ObjectGraphTraverserBuilder acceptorLogic(Consumer<Object> acceptorLogic)
- Specified by:
acceptorLogic
in interfaceObjectGraphTraverserBuilder
-
mutator
public ObjectGraphTraverserBuilder mutator(TraversalMutator mutator)
- Specified by:
mutator
in interfaceObjectGraphTraverserBuilder
-
mutatorPredicate
public ObjectGraphTraverserBuilder mutatorPredicate(Predicate<Object> mutatorPredicate)
- Specified by:
mutatorPredicate
in interfaceObjectGraphTraverserBuilder
-
mutatorLogic
public ObjectGraphTraverserBuilder mutatorLogic(Function<Object,Object> mutatorLogic)
- Specified by:
mutatorLogic
in interfaceObjectGraphTraverserBuilder
-
mutationListener
public ObjectGraphTraverserBuilder mutationListener(MutationListener mutationListener)
- Specified by:
mutationListener
in interfaceObjectGraphTraverserBuilder
-
traversalMode
public ObjectGraphTraverserBuilder traversalMode(TraversalMode traversalMode)
- Specified by:
traversalMode
in interfaceObjectGraphTraverserBuilder
-
referenceHandlerProvider
public ObjectGraphTraverserBuilder referenceHandlerProvider(TraversalReferenceHandlerProvider referenceHandlerProvider)
- Specified by:
referenceHandlerProvider
in interfaceObjectGraphTraverserBuilder
-
roots
public ObjectGraphTraverserBuilder roots(Object... roots)
- Specified by:
roots
in interfaceObjectGraphTraverserBuilder
-
mutate
public ObjectGraphTraverserBuilder mutate(Predicate<Object> predicate, Function<Object,?> logic)
- Specified by:
mutate
in interfaceObjectGraphTraverserBuilder
-
mutate
public <T> ObjectGraphTraverserBuilder mutate(Class<T> type, Function<? super T,?> logic)
- Specified by:
mutate
in interfaceObjectGraphTraverserBuilder
-
apply
public ObjectGraphTraverserBuilder apply(Predicate<Object> predicate, Consumer<Object> logic)
- Specified by:
apply
in interfaceObjectGraphTraverserBuilder
-
apply
public <T> ObjectGraphTraverserBuilder apply(Class<T> type, Consumer<? super T> logic)
- Specified by:
apply
in interfaceObjectGraphTraverserBuilder
-
setMutationListener
public ObjectGraphTraverserBuilder setMutationListener(MutationListener mutationListener)
-
provideAcceptor
public TraversalAcceptor provideAcceptor()
- Specified by:
provideAcceptor
in interfaceObjectGraphTraverserBuilder
-
provideMutator
public TraversalMutator provideMutator()
- Specified by:
provideMutator
in interfaceObjectGraphTraverserBuilder
-
provideReferenceHandlerProvider
public TraversalReferenceHandlerProvider provideReferenceHandlerProvider()
- Specified by:
provideReferenceHandlerProvider
in interfaceObjectGraphTraverserBuilder
-
provideSkippedInstances
public XGettingSet<Object> provideSkippedInstances()
- Specified by:
provideSkippedInstances
in interfaceObjectGraphTraverserBuilder
-
buildObjectGraphTraverser
public ObjectGraphTraverser buildObjectGraphTraverser()
- Specified by:
buildObjectGraphTraverser
in interfaceObjectGraphTraverserBuilder
-
-