com.vladsch.flexmark.tree.iteration.VoidToValueIConsumerAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-tree-iteration Show documentation
Show all versions of flexmark-tree-iteration Show documentation
flexmark-java library for recursive tree iteration with the filtering and recursion conditions provided by predicates
package com.vladsch.flexmark.tree.iteration;
import org.jetbrains.annotations.NotNull;
public class VoidToValueIConsumerAdapter implements ValueIterationConsumer {
final private @NotNull VoidIterationConsumer myConsumer;
public VoidToValueIConsumerAdapter(@NotNull VoidIterationConsumer consumer) {
myConsumer = consumer;
}
@Override
public void accept(@NotNull N it, @NotNull ValueIteration iteration) {
myConsumer.accept(it, iteration);
}
@Override
public void beforeStart(@NotNull ValueIteration iteration) {
myConsumer.beforeStart(iteration);
}
@Override
public void startRecursion(@NotNull VoidIteration iteration) {
myConsumer.startRecursion(iteration);
}
@Override
public void endRecursion(@NotNull VoidIteration iteration) {
myConsumer.endRecursion(iteration);
}
@Override
public void afterEnd(@NotNull ValueIteration iteration) {
myConsumer.afterEnd(iteration);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy