Class IntegerSubject


public class IntegerSubject extends ComparableSubject<IntegerSubject,Integer>
Propositions for Integer subjects.
  • Field Details

  • Constructor Details

  • Method Details

    • isInclusivelyInRange

      @Deprecated public void isInclusivelyInRange(int lower, int upper)
      Deprecated.
      Use isIn(Range.closed(lower, upper)) instead.
      Attests that the int is inclusively within the lower and upper bounds provided or fails.
    • isBetween

      @Deprecated public void isBetween(int lower, int upper)
      Deprecated.
      Use isIn(Range.open(lower, upper)) instead.
      Attests that the int is exclusively within the lower and upper bounds provided or fails.
    • isEqualTo

      public void isEqualTo(Object other)
      Description copied from class: Subject
      Fails if the subject is not equal to the given object.
      Overrides:
      isEqualTo in class Subject<IntegerSubject,Integer>
    • isNotEqualTo

      public void isNotEqualTo(Object other)
      Description copied from class: Subject
      Fails if the subject is equal to the given object.
      Overrides:
      isNotEqualTo in class Subject<IntegerSubject,Integer>
    • isEqualTo

      public void isEqualTo(long other)
    • is

      public void is(long other)
    • is

      public void is(short other)
    • is

      public void is(byte other)