Class StringChecker

java.lang.Object
org.immutables.check.ObjectChecker<String>
org.immutables.check.StringChecker

public class StringChecker extends ObjectChecker<String>
The string match wrapper.
  • Constructor Details

    • StringChecker

      StringChecker(@Nullable String actualValue, boolean negate)
  • Method Details

    • not

      public StringChecker not()
      Description copied from class: ObjectChecker
      Makes checker negative.
      Overrides:
      not in class ObjectChecker<String>
      Returns:
      negative checker
    • contains

      public void contains(String substring)
    • endsWith

      public void endsWith(String suffix)
    • is

      public void is(String value)
      Description copied from class: ObjectChecker
      This is equal to check
      Overrides:
      is in class ObjectChecker<String>
      Parameters:
      value - the value
    • isEmpty

      public void isEmpty()
    • isNonEmpty

      public void isNonEmpty()
    • isNullOrEmpty

      public void isNullOrEmpty()
    • matches

      public void matches(String pattern)
    • startsWith

      public void startsWith(String prefix)
    • notEmpty

      public void notEmpty()