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

com.vladsch.flexmark.tree.iteration.IterationConditions 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;

import java.util.function.Function;

public interface IterationConditions {
    @NotNull
    Function getInitializer();

    @NotNull
    Function getIterator();

    @NotNull
    default IterationConditions getReversed() {
        throw new IllegalStateException("Method not implemented");
    }

    @NotNull
    default IterationConditions getAborted() {
        Function function = n -> null;
        return new FixedIterationConditions<>(function, function, function, function);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy