All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.tree.iteration.VoidToValueIConsumerAdapter Maven / Gradle / Ivy

Go to download

flexmark-java library for recursive tree iteration with the filtering and recursion conditions provided by predicates

There is a newer version: 0.64.8
Show newest version
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