Class CaseInsensitiveStringMatchPredicate

java.lang.Object
net.shibboleth.utilities.java.support.logic.CaseInsensitiveStringMatchPredicate
All Implemented Interfaces:
Predicate<CharSequence>, Predicate<CharSequence>

public class CaseInsensitiveStringMatchPredicate
extends Object
implements Predicate<CharSequence>
A Predicate that checks that a given input string matches a target string while ignoring case. If a given input is null this predicate returns false.
  • Field Details

    • target

      @Nonnull private final String target
      The target string.
  • Constructor Details

    • CaseInsensitiveStringMatchPredicate

      public CaseInsensitiveStringMatchPredicate​(@Nonnull String matchString)
      Constructor.
      Parameters:
      matchString - that string against which predicate inputs will be checked
  • Method Details