Interface TrimTree

All Superinterfaces:
MutationPolicy
All Known Implementing Classes:
ImmutableTrimTree

@Immutable public interface TrimTree extends MutationPolicy
Ensure no tree will have a greater depth than allowed

By default it will use the depth as specified in the Program definition, but that can be overriden

  • Method Summary

    Modifier and Type
    Method
    Description
    static TrimTree
    Build a TrimTree using the default max depth as specified in the Program
    default void
     
    default Optional<Integer>
    Override the max depth to enforce
    static TrimTree
    of(int maxDepth)
    Build a TrimTree enforcing a specific max depth
  • Method Details

    • maxDepth

      @Parameter @Default default Optional<Integer> maxDepth()
      Override the max depth to enforce
      Returns:
    • check

      @Check default void check()
    • of

      static TrimTree of(int maxDepth)
      Build a TrimTree enforcing a specific max depth
      Parameters:
      maxDepth -
      Returns:
    • build

      static TrimTree build()
      Build a TrimTree using the default max depth as specified in the Program
      Returns: