Class Checks.Check<A>

java.lang.Object
eu.bandm.tools.util.Checks.Check<A>
Direct Known Subclasses:
Checks.IntCheck
Enclosing class:
Checks

public static class Checks.Check<A> extends Object
  • Field Details

    • condition

      protected final Predicate<? super A> condition
    • display

      protected final String display
  • Constructor Details

  • Method Details

    • check

      public final void check(A value)
    • checked

      public final A checked(A value)
    • isValid

      public final boolean isValid(A value)
    • display

      public final String display(A value)
    • negate

      public Checks.Check<A> negate()
    • and

      public <B extends A> Checks.Check<B> and(Checks.Check<? super B> other)
    • or

      public <B extends A> Checks.Check<B> or(Checks.Check<? super B> other)