| Constructor and Description |
|---|
Predicates() |
| Modifier and Type | Method and Description |
|---|---|
static xyz.cofe.collection.Predicate<String> |
equals(String source)
Создает предикат сравнения строки
|
static xyz.cofe.collection.Predicate<String> |
equalsIgnoreCase(String source)
Создает предикат сравнения строки без учета регистра
|
static xyz.cofe.collection.Predicate<String> |
in(Iterable<String> strings,
xyz.cofe.collection.Predicate<String> pred) |
static xyz.cofe.collection.Predicate<String> |
in(String[] strings,
xyz.cofe.collection.Predicate<String> pred) |
static xyz.cofe.collection.Predicate<String> |
isNumeric()
Проверка что указанный текс является числом.
|
static xyz.cofe.collection.Predicate<String> |
matchRegex(Pattern regex)
Создает предкат сравнения с регулярным выражением
|
public static xyz.cofe.collection.Predicate<String> matchRegex(Pattern regex)
regex - Регулярное выражениеpublic static xyz.cofe.collection.Predicate<String> equals(String source)
source - Образец для сравненияpublic static xyz.cofe.collection.Predicate<String> equalsIgnoreCase(String source)
source - Образец для сравненияpublic static xyz.cofe.collection.Predicate<String> in(String[] strings, xyz.cofe.collection.Predicate<String> pred)
public static xyz.cofe.collection.Predicate<String> in(Iterable<String> strings, xyz.cofe.collection.Predicate<String> pred)
public static xyz.cofe.collection.Predicate<String> isNumeric()
(?is)^\s*(\-|\+)?\s*\d+(\.(\d+))?\s*$Copyright © 2017. All rights reserved.