com.vladsch.flexmark.tree.iteration.IterationConditions 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;
import java.util.function.Function;
public interface IterationConditions {
@NotNull
Function super N, N> getInitializer();
@NotNull
Function super N, N> getIterator();
@NotNull
default IterationConditions getReversed() {
throw new IllegalStateException("Method not implemented");
}
@NotNull
default IterationConditions getAborted() {
Function super N, N> function = n -> null;
return new FixedIterationConditions<>(function, function, function, function);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy