Class MultiLongMediator


  • public final class MultiLongMediator
    extends Mediator
    A multi long mediator is not mutable.
    Author:
    Silvan Wyss
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void areBetween​(int min, int max)
      Generates an error for all values of this multi long mediator that are not between the given min and max.
      void areBiggerThan​(long value)
      Generates an error for all values of this multi long mediator that are not bigger than the given value.
      void areDividableBy​(long value)
      Generates an error for all values of this multi long mediator that are not dividable by the given value.
      void areEqualTo​(long value)
      Generates an error for all values of this multi long mediator that do not equal the given value.
      void areEven()
      Generates an error for all values of this multi long mediator that are not even.
      void areNegative()
      Generates an error for all values of this multi long mediator that are not negative.
      void areNotEqualTo​(long value)
      Generates an error for all values of this multi long mediator that equal the given value.
      void areOdd()
      Generates an error for all values of this multi long mediator that are not odd.
      void arePositive()
      Generates an error for all values of this multi long mediator that are not positive.
      void areSmallerThan​(long value)
      Generates an error for all values of this multi long mediator that are not smaller than the given value.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • areBetween

        public void areBetween​(int min,
                               int max)
        Generates an error for all values of this multi long mediator that are not between the given min and max.
        Parameters:
        min -
        max -
        Throws:
        NonBiggerArgumentException - if the given max is not bigger than the given min.
      • areBiggerThan

        public void areBiggerThan​(long value)
        Generates an error for all values of this multi long mediator that are not bigger than the given value.
        Parameters:
        value -
      • areDividableBy

        public void areDividableBy​(long value)
        Generates an error for all values of this multi long mediator that are not dividable by the given value.
        Parameters:
        value -
        Throws:
        NonPositiveArgumentException - if the given value is not positive.
      • areEqualTo

        public void areEqualTo​(long value)
        Generates an error for all values of this multi long mediator that do not equal the given value.
        Parameters:
        value -
      • areEven

        public void areEven()
        Generates an error for all values of this multi long mediator that are not even.
      • areNegative

        public void areNegative()
        Generates an error for all values of this multi long mediator that are not negative.
      • areOdd

        public void areOdd()
        Generates an error for all values of this multi long mediator that are not odd.
      • arePositive

        public void arePositive()
        Generates an error for all values of this multi long mediator that are not positive.
      • areSmallerThan

        public void areSmallerThan​(long value)
        Generates an error for all values of this multi long mediator that are not smaller than the given value.
        Parameters:
        value -
      • areNotEqualTo

        public void areNotEqualTo​(long value)
        Generates an error for all values of this multi long mediator that equal the given value.
        Parameters:
        value -