public class CaseInsensitiveStringMatchPredicate extends Object implements com.google.common.base.Predicate<CharSequence>
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
.Modifier and Type | Field and Description |
---|---|
private String |
target
The target string.
|
Constructor and Description |
---|
CaseInsensitiveStringMatchPredicate(String matchString)
Constructor.
|
private final String target
public boolean apply(CharSequence input)
apply
in interface com.google.common.base.Predicate<CharSequence>
Copyright © 1999–2018. All rights reserved.