| Package | Description |
|---|---|
| xyz.cofe.cbuffer | |
| xyz.cofe.collection |
Общие классы и интерфейсы: Функции, Пара, Конвертор и т.д.
|
| xyz.cofe.collection.iterators |
Интераторы
|
| xyz.cofe.collection.table |
Таблицы, обход таблицы
|
| xyz.cofe.common |
Работа с деревом
|
| xyz.cofe.fs | |
| xyz.cofe.io | |
| xyz.cofe.text | |
| xyz.cofe.text.parser | |
| xyz.cofe.text.table | |
| xyz.cofe.typeconv | |
| xyz.cofe.types |
Работа с простыми типами, инструменты для типов данных
|
| xyz.cofe.xml |
Классы для работы с XML
|
| xyz.cofe.xml.stream.path |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Fragment> |
Fragments.rangePredicate(long begin,
long end) |
static Predicate<Fragment> |
Fragments.sizeEqualsPredicate(long size) |
| Modifier and Type | Method and Description |
|---|---|
List<Fragment> |
Fragments.find(Predicate<Fragment> p)
Поиск фрагментов по критерию
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicates.and(Predicate<T>... a)
Предикат возвращает true, если предикат A(объект) и предикат B(объект) возвращают true
|
static Predicate<Number> |
Predicates.equals(Number compareValue) |
static <T> Predicate<T> |
Predicates.in(Iterable src)
Предикат возвращает true, если объект находиться в указанной последовательности
|
static <T> Predicate<T> |
Predicates.isEquals(Object value)
Предикат возвращает true, если объект равен указанному объекту
|
static <T> Predicate<T> |
Predicates.isNotNull()
Предикат возвращает true, если НЕ нулевая ссылка
|
static <T> Predicate<T> |
Predicates.isNull()
Предикат возвращает true, если нулевая ссылка
|
static Predicate<Number> |
Predicates.lessOrEqualsThen(Number compareValue) |
static Predicate<Number> |
Predicates.lessThen(Number compareValue) |
static Predicate<Number> |
Predicates.moreOrEqualsThen(Number compareValue) |
static Predicate<Number> |
Predicates.moreThen(Number compareValue) |
static <T> Predicate<T> |
Predicates.not(Predicate<T> a)
Предикат возвращает true, если предикат A(объект) возвращает false
|
static Predicate<Number> |
Predicates.notEquals(Number compareValue) |
static <T> Predicate<T> |
Predicates.or(Predicate<T>... a)
Предикат возвращает true, если предикат A(объект) и предикат B(объект) возвращают true
|
static <T> Predicate<T> |
Predicates.xor(Predicate<T> a,
Predicate<T> b)
Предикат возвращает true, если предикат A(объект) (НЕ ИЛИ) предикат B(объект) возвращают true
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicates.and(Predicate<T>... a)
Предикат возвращает true, если предикат A(объект) и предикат B(объект) возвращают true
|
static <T> Predicate<T> |
Predicates.not(Predicate<T> a)
Предикат возвращает true, если предикат A(объект) возвращает false
|
static <T> Predicate<T> |
Predicates.or(Predicate<T>... a)
Предикат возвращает true, если предикат A(объект) и предикат B(объект) возвращают true
|
static <T> Iterable<T> |
Iterators.predicate(Iterable<T> src,
Predicate<T> predicate)
Возвращает последовательность содержащую только те объекты, которые удалетворяют предикату
|
static <T> Iterable<T> |
Iterators.predicate(T[] src,
Predicate<T> predicate)
Возвращает последовательность содержащую только те объекты, которые удалетворяют предикату
|
static <T> Predicate<T> |
Predicates.xor(Predicate<T> a,
Predicate<T> b)
Предикат возвращает true, если предикат A(объект) (НЕ ИЛИ) предикат B(объект) возвращают true
|
static <T> Predicate<T> |
Predicates.xor(Predicate<T> a,
Predicate<T> b)
Предикат возвращает true, если предикат A(объект) (НЕ ИЛИ) предикат B(объект) возвращают true
|
| Modifier and Type | Field and Description |
|---|---|
protected Predicate<T> |
PredicateIterator.predicate
Предикат
|
protected Predicate<T> |
PredicateIterable.predicate
Предикат
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<TreeWalk<T>> |
TreeWalkItreator.createIterable(T startNode,
NodesExtracter<T,T> extracter,
Predicate<TreeWalk<T>> walkPredicate)
Создает последовательность
|
static <T> Iterable<TreeWalk<T>> |
TreeWalkItreator.createIterable(T startNode,
NodesExtracter<T,T> extracter,
Predicate<TreeWalk<T>> walkPredicate,
TreeWalkType walkType)
Создает последовательность
|
| Constructor and Description |
|---|
PredicateIterable(Predicate<T> predicate,
Iterable<T> iterable)
Конструктор
|
PredicateIterator(Predicate<T> predicate,
Iterator<T> iterator)
Конструктор
|
TreeWalkItreator(T startNode,
NodesExtracter<T,T> extracter,
int startLevel,
int levelStep,
TreeWalkType walkType,
Predicate<T> nodePredicate,
Predicate<TreeWalk<T>> walkPredicate)
Конструктор
|
TreeWalkItreator(T startNode,
NodesExtracter<T,T> extracter,
int startLevel,
int levelStep,
TreeWalkType walkType,
Predicate<T> nodePredicate,
Predicate<TreeWalk<T>> walkPredicate)
Конструктор
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Pair<Row,Value>> |
Table.getColumnRowValues(Column column,
Predicate<Row> rowPred)
Возвращает пары Строка/Значение для указанной колонки
|
Iterable<Value> |
Table.getColumnValues(Column column,
Predicate<Row> rowPred)
Возвращает значения для указанной колонки
|
Iterable<Pair<Column,Value>> |
Table.getRowColumnValues(Row row,
Predicate<Column> columnPred)
Возвращает пары Колонка/Значение для указанной строки
|
Iterable<Value> |
Table.getRowValues(Row row,
Predicate<Column> colPred)
Возвращает значения для указанной строки
|
| Modifier and Type | Field and Description |
|---|---|
protected Predicate<String> |
PropertyChangeDelegator.propertyNameFilter |
| Modifier and Type | Method and Description |
|---|---|
static AutoCloseable |
PropertyFn.onPropertyChanged(Object bean,
Predicate<String> propertyName,
Func4<Object,Object,String,Object,Object> listenFn,
boolean beanAsWeak,
boolean listenAsWeak)
Добавляет подписчика на изменение свойств объекта
|
static AutoCloseable |
PropertyFn.onPropertyChanged(Object bean,
Predicate<String> propertyName,
Reciver listenFn)
Добавляет подписчика на изменение свойств объекта.
|
static AutoCloseable |
PropertyFn.onPropertyChanged(Object bean,
Predicate<String> propertyName,
Reciver listenFn,
boolean beanAsWeak,
boolean listenAsWeak)
Добавляет подписчика на изменение свойств объекта
|
| Constructor and Description |
|---|
PropertyChangeDelegator(Object bean,
Method mremove,
boolean beanAsWeak,
Predicate<String> propertyNameFilter,
Func1<Object,PropertyChangeEvent> consumer,
boolean consumerAsWeak) |
PropertyChangeDelegator(Object bean,
Method mremove,
boolean beanAsWeak,
Predicate<String> propertyNameFilter,
Func2<Object,Object,Object> consumer,
boolean consumerAsWeak) |
PropertyChangeDelegator(Object bean,
Method mremove,
boolean beanAsWeak,
Predicate<String> propertyNameFilter,
Func3<Object,String,Object,Object> consumer,
boolean consumerAsWeak) |
PropertyChangeDelegator(Object bean,
Method mremove,
boolean beanAsWeak,
Predicate<String> propertyNameFilter,
Func4<Object,Object,String,Object,Object> consumer,
boolean consumerAsWeak) |
PropertyChangeDelegator(Object bean,
Method mremove,
boolean beanAsWeak,
Predicate<String> propertyNameFilter,
Reciver consumer,
boolean consumerAsWeak) |
PropertyChangeDelegator(Object bean,
Method mremove,
boolean beanAsWeak,
Predicate<String> propertyNameFilter,
Runnable consumer,
boolean consumerAsWeak) |
| Modifier and Type | Field and Description |
|---|---|
protected Predicate<Stack<File>> |
FileVisitor.filter |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<File> |
FilePredicates.and(Predicate<File>... p) |
static Predicate<File> |
FilePredicates.dirContains(Predicate<File> p) |
static Predicate<File> |
FilePredicates.dirEmpty() |
static Predicate<File> |
FilePredicates.dirEmpty(boolean recursive)
Предикат возвращает true если каталог не содержит элементов
|
Predicate<Stack<File>> |
FileVisitor.getFilter()
Вызывается перед входом в каталог для проверки необходимости войти
|
static Predicate<File> |
FilePredicates.isDir() |
static Predicate<File> |
FilePredicates.isFile() |
static Predicate<File> |
FilePredicates.nameEquals(String name)
Имя файла совпадает с указанным.
|
static Predicate<File> |
FilePredicates.nameWildcard(String wildcard)
Имя файла совпадает с указанным шаблоном.
|
static Predicate<File> |
FilePredicates.not(Predicate<File> p) |
static Predicate<File> |
FilePredicates.or(Predicate<File>... p) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<File> |
FilePredicates.and(Predicate<File>... p) |
static Predicate<File> |
FilePredicates.dirContains(Predicate<File> p) |
static Iterable<File> |
FileIterators.filter(Iterable<File> files,
Predicate<File> p)
Фильтрует файлы соответствующие фильтру
|
static File |
FileIterators.first(Iterable<File> files,
Predicate<File> p)
Возвращает первый файл соответствующий фильтру
|
static boolean |
FilePredicates.in(Predicate<File> p,
Iterable<File> files) |
static Predicate<File> |
FilePredicates.not(Predicate<File> p) |
static Predicate<File> |
FilePredicates.or(Predicate<File>... p) |
void |
FileVisitor.setFilter(Predicate<Stack<File>> filter)
Вызывается перед входом в каталог для проверки необходимости войти
|
| Modifier and Type | Field and Description |
|---|---|
protected Predicate<TreeWalk<File>> |
FileTreeIterableBuilder.FilterBuilder.current |
protected Predicate<File> |
FileTreeIterableBuilder.fileFilter |
protected Predicate<File> |
FileTreeIterable.fileFilter |
protected Predicate<TreeWalk<File>> |
FileTreeIterableBuilder.treeWalkFilter |
protected Predicate<TreeWalk<File>> |
FileTreeIterable.treeWalkFilter |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<File> |
FilePredicates.abspath(Predicate<String> pred) |
static Predicate<File> |
FilePredicates.abspath(Predicate<String> pred,
boolean nullValue) |
static Predicate<File> |
FilePredicates.and(Predicate<File>... preds) |
Predicate<TreeWalk<File>> |
FileTreeIterableBuilder.FilterBuilder.build() |
Predicate<TreeWalk<File>> |
FileTreeIterableBuilder.FilterBuilder.dummy() |
Predicate<File> |
FileTreeIterableBuilder.getFileFilter() |
Predicate<File> |
FileTreeIterable.getFileFilter() |
Predicate<TreeWalk<File>> |
FileTreeIterableBuilder.getTreeWalkFilter() |
Predicate<TreeWalk<File>> |
FileTreeIterable.getTreeWalkFilter() |
static Predicate<File> |
FilePredicates.name(Predicate<String> namePred) |
static Predicate<File> |
FilePredicates.name(Predicate<String> namePred,
boolean nullValue) |
static Predicate<File> |
FilePredicates.not(Predicate<File> pred) |
static Predicate<File> |
FilePredicates.or(Predicate<File>... preds) |
static Predicate<File> |
FilePredicates.path(Predicate<String> pred) |
static Predicate<File> |
FilePredicates.path(Predicate<String> pred,
boolean nullValue) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<File> |
FilePredicates.abspath(Predicate<String> pred) |
static Predicate<File> |
FilePredicates.abspath(Predicate<String> pred,
boolean nullValue) |
static Predicate<File> |
FilePredicates.and(Predicate<File>... preds) |
FileTreeIterableBuilder.FilterBuilder |
FileTreeIterableBuilder.FilterBuilder.and(Predicate<TreeWalk<File>>... filters) |
FileTreeIterableBuilder |
FileTreeIterableBuilder.fileFilter(Predicate<File> filter) |
static Predicate<File> |
FilePredicates.name(Predicate<String> namePred) |
static Predicate<File> |
FilePredicates.name(Predicate<String> namePred,
boolean nullValue) |
static Predicate<File> |
FilePredicates.not(Predicate<File> pred) |
static Predicate<File> |
FilePredicates.or(Predicate<File>... preds) |
FileTreeIterableBuilder.FilterBuilder |
FileTreeIterableBuilder.FilterBuilder.or(Predicate<TreeWalk<File>>... filters) |
static Predicate<File> |
FilePredicates.path(Predicate<String> pred) |
static Predicate<File> |
FilePredicates.path(Predicate<String> pred,
boolean nullValue) |
void |
FileTreeIterableBuilder.setFileFilter(Predicate<File> fileFilter) |
void |
FileTreeIterable.setFileFilter(Predicate<File> fileFilter) |
void |
FileTreeIterableBuilder.setTreeWalkFilter(Predicate<TreeWalk<File>> treeWalkFilter) |
void |
FileTreeIterable.setTreeWalkFilter(Predicate<TreeWalk<File>> treeWalkFilter) |
FileTreeIterableBuilder |
FileTreeIterableBuilder.treeWalkFilter(Predicate<TreeWalk<File>> treeWalkFilter) |
| Constructor and Description |
|---|
FileTreeIterator(File startNode,
NodesExtracter<File,File> extracter,
int startLevel,
int levelStep,
TreeWalkType walkType,
Predicate<File> nodePredicate,
Predicate<TreeWalk<File>> walkPredicate) |
FileTreeIterator(File startNode,
NodesExtracter<File,File> extracter,
int startLevel,
int levelStep,
TreeWalkType walkType,
Predicate<File> nodePredicate,
Predicate<TreeWalk<File>> walkPredicate) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<String> |
Text.Predicates.equals(String source)
Создает предикат сравнения строки
|
static Predicate<String> |
Text.Predicates.equalsIgnoreCase(String source)
Создает предикат сравнения строки без учета регистра
|
static Predicate<String> |
Text.Predicates.in(boolean ignoreCase,
Iterable<String> values)
Создает предикат проверки совпадения значения хотябы с одним из заданных
|
static Predicate<String> |
Text.Predicates.in(boolean ignoreCase,
String... values)
Создает предикат проверки совпадения значения хотябы с одним из заданных
|
static Predicate<String> |
Text.Predicates.in(Iterable<String> values,
Func2<Boolean,String,String> matcher)
Создает предикат проверки совпадения значения хотябы с одним из заданных
|
static Predicate<String> |
Text.Predicates.in(Iterable<String> strings,
Predicate<String> pred) |
static Predicate<String> |
Text.Predicates.in(String[] strings,
Predicate<String> pred) |
static Predicate<String> |
Text.Predicates.isNumeric()
Проверка что указанный текс является числом.
|
static Predicate<String> |
Text.Predicates.matchRegex(Pattern regex)
Создает предкат сравнения с регулярным выражением
|
| Modifier and Type | Method and Description |
|---|---|
static Predicate<String> |
Text.Predicates.in(Iterable<String> strings,
Predicate<String> pred) |
static Predicate<String> |
Text.Predicates.in(String[] strings,
Predicate<String> pred) |
static int[] |
Text.indexesOf(Predicate<String> src,
Iterable<String> arr) |
static int[] |
Text.indexesOf(Predicate<String> src,
String... arr) |
| Modifier and Type | Field and Description |
|---|---|
static Predicate<Character> |
LexerUtil.isDigit
Предикат - это цифра
|
static Predicate<Character> |
LexerUtil.isLetter
Предикат - это буква
|
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Character>[] |
LexerUtil.append(Predicate<Character>[] src,
Predicate<Character>... chr)
Присоединяет к массиву еще массив предикатов
|
static Predicate<Character>[] |
LexerUtil.array(Predicate<Character>... chr) |
static Predicate<Character> |
LexerUtil.isInList(char... listOfChars)
Создает предикат, символ находится в указанном списке
|
static Predicate<Character> |
LexerUtil.isInList(String listOfChars)
Создает предикат, символ находится в указанном списке
|
static Predicate<Character> |
LexerUtil.not(Predicate<Character> pred) |
static Predicate<Character> |
LexerUtil.or(Predicate<Character>... p)
Создает предикат ИЛИ
|
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Character>[] |
LexerUtil.append(Predicate<Character>[] src,
Predicate<Character>... chr)
Присоединяет к массиву еще массив предикатов
|
static Predicate<Character>[] |
LexerUtil.append(Predicate<Character>[] src,
Predicate<Character>... chr)
Присоединяет к массиву еще массив предикатов
|
static Predicate<Character>[] |
LexerUtil.array(Predicate<Character>... chr) |
static int |
LexerUtil.isRepeat(String src,
int offset,
Predicate<Character> charPred) |
static boolean |
LexerUtil.match(String src,
int offset,
Predicate<Character>... charPreds)
Проверяет последовательность символов в соответ с предикатами.
|
static Predicate<Character> |
LexerUtil.not(Predicate<Character> pred) |
static Predicate<Character> |
LexerUtil.or(Predicate<Character>... p)
Создает предикат ИЛИ
|
| Modifier and Type | Class and Description |
|---|---|
static class |
CellFormatMap.ColumnIndexPredicate |
static class |
CellFormatMap.ColumnNamePredicate |
| Modifier and Type | Method and Description |
|---|---|
Path<Class,Convertor<Object,Object>> |
TypeCastGraph.findPath(Class from,
Class to,
Predicate<Path<Class,Convertor<Object,Object>>> filter)
Поиск пути цепочки преобразований.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClassPredicate
Предикат проверки типа объекта
Проверяет условие:
X(value) instanceof Y |
| Modifier and Type | Field and Description |
|---|---|
protected Predicate |
ClassFilterIterable.predicate |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Method> |
TypesUtil.Predicates.callableArguments(Object[] args)
Предикат: Сверяет на возможность вызова метода с указанными аргументами
|
static Predicate<Class> |
TypesUtil.Predicates.classEquals(Class target)
Предикат сравнения value equals ( target )
|
static Predicate<Class> |
TypesUtil.Predicates.classInstanceOf(Class target)
Предикат стравения value instanceOf target
|
static Predicate<Method> |
TypesUtil.Predicates.hasAnnotation(Class annClass)
Предикат , возвращает true если метод имеет указаную аннатацию
|
static Predicate<Method> |
TypesUtil.Predicates.hasEmptyParameters()
Возвращает предикат проверки метода без параметров
|
static Predicate<Method> |
TypesUtil.Predicates.hasParameters(Class... params)
Возвращает предикат строгой проверкти типов аргументов метода
|
static Predicate<Method> |
TypesUtil.Predicates.nameStart(String text)
Предикат - возвращает true, если название метода начинается с указанного текста
|
static Predicate<Method> |
TypesUtil.Predicates.returns(Class type)
Предикат - возвращает true, если метода возвращает указанный тип
|
| Modifier and Type | Method and Description |
|---|---|
static Iterable<Method> |
TypesUtil.Iterators.methodsOf(Object src,
Predicate<Method> predicate)
Возвращает публичные методы объекта
|
| Modifier and Type | Field and Description |
|---|---|
static Predicate<Node> |
XmlUtil.Predicates.isElement |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Node> |
XmlUtil.Predicates.and(Predicate<Node>... preds) |
static Predicate<Node> |
XmlUtil.Predicates.nodeName(Predicate<String> nodeNamePredicate) |
static Predicate<Node> |
XmlUtil.Predicates.nodeName(String nodeName,
boolean ignoreCase) |
static Predicate<Node> |
XmlUtil.Predicates.not(Predicate<Node> pred) |
static Predicate<Node> |
XmlUtil.Predicates.or(Predicate<Node>... preds) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Node> |
XmlUtil.Predicates.and(Predicate<Node>... preds) |
static Iterable<Element> |
XmlUtil.elements(Node node,
Predicate<Node> pred)
Перечисляет дочерние тэги, первого уровня вложенности
|
static Iterable<Node> |
XmlUtil.filter(Iterable<Node> src,
Predicate<Node> pred) |
static Iterable<Node> |
XmlUtil.filter(Node[] src,
Predicate<Node> pred) |
static Predicate<Node> |
XmlUtil.Predicates.nodeName(Predicate<String> nodeNamePredicate) |
static Predicate<Node> |
XmlUtil.Predicates.not(Predicate<Node> pred) |
static Predicate<Node> |
XmlUtil.Predicates.or(Predicate<Node>... preds) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PathExpression
Интерфейс проверки пути
|
| Modifier and Type | Class and Description |
|---|---|
class |
ParentMatcher |
class |
TagMatcher |
| Modifier and Type | Field and Description |
|---|---|
protected Predicate<XMLEvent> |
TagMatcher.elementPredicate |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<XMLEvent> |
TagMatcher.attr(Predicate<String> attrNamePredicate,
Predicate<String> valuePredicate) |
Predicate<XMLEvent> |
TagMatcher.getElementPredicate() |
static Predicate<XMLEvent> |
TagMatcher.hasAttribute(String name,
boolean ignoreCase) |
static Predicate<XMLEvent> |
TagMatcher.nameEquals(String name) |
static Predicate<XMLEvent> |
TagMatcher.nameEqualsIgnoreCase(String name) |
static Predicate<XMLEvent> |
TagMatcher.nameMatches(String name) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<XMLEvent> |
TagMatcher.attr(Predicate<String> attrNamePredicate,
Predicate<String> valuePredicate) |
static Predicate<XMLEvent> |
TagMatcher.attr(Predicate<String> attrNamePredicate,
Predicate<String> valuePredicate) |
static PathExpression |
Expressions.attr(Predicate<String> namePredicate,
Predicate<String> valuePredicate) |
static PathExpression |
Expressions.attr(Predicate<String> namePredicate,
Predicate<String> valuePredicate) |
void |
TagMatcher.setElementPredicate(Predicate<XMLEvent> elementPredicate) |
| Constructor and Description |
|---|
TagMatcher(Predicate<XMLEvent> xmlElementPred) |
Copyright © 2018. All rights reserved.