Class ValueIterationAdapterImpl.MyValueIterationConsumer<P,T,R>
- java.lang.Object
-
- com.vladsch.flexmark.tree.iteration.ValueIterationAdapterImpl.MyValueIterationConsumer<P,T,R>
-
- All Implemented Interfaces:
IterationConsumer<P>
,ValueIterationConsumer<P,R>
- Enclosing class:
- ValueIterationAdapterImpl<N,T>
private static class ValueIterationAdapterImpl.MyValueIterationConsumer<P,T,R> extends java.lang.Object implements ValueIterationConsumer<P,R>
-
-
Field Summary
Fields Modifier and Type Field Description private ValueIterationConsumer<? super T,R>
myConsumer
private @Nullable ValueIterationFilter<? super T>
myFilter
private java.util.function.Function<? super P,? extends T>
myFunction
-
Constructor Summary
Constructors Constructor Description MyValueIterationConsumer(@NotNull java.util.function.Function<? super P,? extends T> function, @Nullable ValueIterationFilter<? super T> filter, ValueIterationConsumer<? super T,R> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(P it, @NotNull ValueIteration<R> iteration)
void
afterEnd(@NotNull ValueIteration<R> iteration)
void
beforeStart(@NotNull ValueIteration<R> iteration)
void
endRecursion(@NotNull VoidIteration iteration)
void
startRecursion(@NotNull VoidIteration iteration)
-
-
-
Field Detail
-
myConsumer
private final ValueIterationConsumer<? super T,R> myConsumer
-
myFilter
@Nullable private final @Nullable ValueIterationFilter<? super T> myFilter
-
-
Constructor Detail
-
MyValueIterationConsumer
public MyValueIterationConsumer(@NotNull @NotNull java.util.function.Function<? super P,? extends T> function, @Nullable @Nullable ValueIterationFilter<? super T> filter, ValueIterationConsumer<? super T,R> consumer)
-
-
Method Detail
-
accept
public void accept(@NotNull P it, @NotNull @NotNull ValueIteration<R> iteration)
- Specified by:
accept
in interfaceValueIterationConsumer<P,T>
-
beforeStart
public void beforeStart(@NotNull @NotNull ValueIteration<R> iteration)
- Specified by:
beforeStart
in interfaceValueIterationConsumer<P,T>
-
startRecursion
public void startRecursion(@NotNull @NotNull VoidIteration iteration)
- Specified by:
startRecursion
in interfaceIterationConsumer<P>
-
endRecursion
public void endRecursion(@NotNull @NotNull VoidIteration iteration)
- Specified by:
endRecursion
in interfaceIterationConsumer<P>
-
afterEnd
public void afterEnd(@NotNull @NotNull ValueIteration<R> iteration)
- Specified by:
afterEnd
in interfaceValueIterationConsumer<P,T>
-
-