| Package | Description |
|---|---|
| fluent.validation | |
| fluent.validation.detail | |
| fluent.validation.evaluation |
| Modifier and Type | Class and Description |
|---|---|
class |
CheckDsl<L,D> |
static class |
CheckDsl.Final<D> |
| Modifier and Type | Method and Description |
|---|---|
static Check<Object> |
Checks.a(Class<?> expectedClass) |
static <D> Check<D> |
Checks.allOf(Check<? super D>... operands) |
static <D> Check<D> |
Checks.allOf(Iterable<Check<? super D>> operands) |
static Check<Object> |
Checks.an(Class<?> expectedClass) |
<U extends T> |
Check.and(Check<? super U> operand)
Compose this check with another one using logical AND operator.
|
static <D> Check<D> |
Checks.anyOf(Check<? super D>... operands) |
static <D> Check<D> |
Checks.anyOf(Iterable<Check<? super D>> operands) |
static Check<Object> |
Checks.anything() |
static <D extends Comparable<D>> |
Checks.between(D left,
D right) |
static <D> Check<D> |
Checks.between(D left,
D right,
Comparator<D> comparator) |
static <D> Check<D> |
Checks.betweenInclude(D left,
D right,
Comparator<D> comparator) |
static Check<BigDecimal> |
Checks.closeTo(BigDecimal operand,
BigDecimal precision) |
static Check<Double> |
Checks.closeTo(double operand,
double precision) |
static Check<Float> |
Checks.closeTo(float operand,
float precision) |
static <D,V> Check<D> |
Checks.compose(String name,
Function<? super D,V> function,
Check<? super V> check) |
static <D> Check<D> |
Checks.condition(Predicate<D> predicate,
String expectationDescription) |
static Check<String> |
Checks.contains(String substring) |
static Check<String> |
Checks.containsCaseInsensitive(String substring) |
static <D> Check<D> |
Checks.createBuilder() |
static <D> Check<D> |
Checks.createBuilderWith(Check<D> check) |
static <D> Check<D[]> |
Checks.emptyArray()
Create matcher of empty array.
|
static <D> Check<Collection<D>> |
Checks.emptyCollection()
Create matcher of empty collection.
|
static Check<String> |
Checks.emptyString() |
static Check<String> |
Checks.endsWith(String suffix) |
static Check<String> |
Checks.endsWithCaseInsensitive(String suffix) |
static <D extends Comparable<D>> |
Checks.equalOrLessThan(D operand) |
static <D> Check<D> |
Checks.equalOrLessThan(D operand,
Comparator<D> comparator) |
static <D extends Comparable<D>> |
Checks.equalOrMoreThan(D operand) |
static <D> Check<D> |
Checks.equalOrMoreThan(D operand,
Comparator<D> comparator) |
static Check<BigDecimal> |
Checks.equalTo(BigDecimal expectedValue) |
static <D> Check<D> |
Checks.equalTo(D expectedValue) |
static Check<Double> |
Checks.equalTo(Double expectedValue) |
static Check<Float> |
Checks.equalTo(Float expectedValue) |
static Check<String> |
Checks.equalToCaseInsensitive(String expectedValue) |
static <D> Check<Iterable<D>> |
Checks.every(Check<? super D> check) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInAnyOrder(Check<? super D>... itemChecks) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInAnyOrder(Iterable<Check<? super D>> itemConditions) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInOrder(D... expectedItems) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInOrder(Check<? super D>... itemChecks) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInOrder(Iterable<Check<? super D>> itemConditions) |
static <D> Check<Iterable<D>> |
Checks.exists(Check<? super D> check) |
static Check<Element> |
Checks.hasAttribute(String name) |
static <D> Check<Collection<D>> |
Checks.hasItems(Collection<D> items) |
static <D> Check<Collection<D>> |
Checks.hasItems(D... items) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInAnyOrder(Collection<Check<? super D>> itemChecks) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInAnyOrder(Check<? super D>... itemChecks) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInOrder(Check<? super D>... itemChecks) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInOrder(Iterable<Check<? super D>> itemConditions) |
static <D> Check<Collection<D>> |
Checks.hasSize(int size)
Create matcher of collection size.
|
static Check<Object> |
Checks.instanceOf(Class<?> expectedClass) |
static <D> Check<D> |
Checks.is(D expectedValue) |
static Check<Object> |
Checks.isA(Class<?> expectedClass) |
static Check<Object> |
Checks.isAn(Class<?> expectedClass) |
static Check<Object> |
Checks.isNull() |
static <D extends Comparable<D>> |
Checks.lessThan(D operand) |
static <D> Check<D> |
Checks.lessThan(D operand,
Comparator<D> comparator) |
static Check<String> |
Checks.matches(Pattern pattern) |
static Check<String> |
Checks.matchesPattern(String pattern) |
static Check<Throwable> |
Checks.message(Check<? super String> check) |
static <D extends Comparable<D>> |
Checks.moreThan(D operand) |
static <D> Check<D> |
Checks.moreThan(D operand,
Comparator<D> comparator) |
static <D> Check<D> |
Checks.not(D positiveValue) |
static <D> Check<D> |
Checks.not(Check<D> positiveCheck) |
static Check<Object> |
Checks.notNull() |
static <D> Check<D> |
Checks.nullableCondition(Predicate<D> predicate,
String expectationDescription)
Define a transparent check using provided predicate and string expectation description.
|
static <D> Check<D> |
Checks.oneOf(Collection<D> alternatives)
Create matcher, that matches, if tested object meets one of provided alternatives (or).
|
static <D> Check<D> |
Checks.oneOf(D... alternatives)
Create matcher, that matches, if tested object meets one of provided alternatives (or).
|
<U extends T> |
Check.or(Check<? super U> operand)
Compose this check with another one using logical OR operator.
|
static <D> Check<D> |
Checks.require(Check<? super D> requirement,
Check<? super D> check) |
static <D> Check<D> |
Checks.requireNotNull(Check<D> check) |
static Check<Object> |
Checks.sameClass(Class<?> expectedClass) |
static <D> Check<D> |
Checks.sameInstance(D expectedInstance) |
static Check<String> |
Checks.startsWith(String prefix) |
static Check<String> |
Checks.startsWithCaseInsensitive(String prefix) |
static <D> Check<Collection<D>> |
Checks.subsetOf(Collection<D> superSet)
Create matcher, that matches if tested collection meets subset of provided superset.
|
static <D> Check<Collection<D>> |
Checks.subsetOf(D... superSet)
Create matcher, that matches if tested collection meets subset of provided superset.
|
static <D> Check<D> |
Checks.transparent(CheckVisitor checkVisitor,
Check<D> check) |
static <D> Check<D> |
Checks.which(Check<D> check) |
static Check<Document> |
Checks.xpath(String xpath) |
| Modifier and Type | Method and Description |
|---|---|
static <V> Builder<V,Check<V>> |
Checks.as(Class<V> type) |
static Builder<String,Check<Element>> |
Checks.attribute(String name) |
static <D,V> Builder<V,Check<D>> |
Checks.has(String name,
Function<? super D,V> function) |
static <D,V> Builder<V,Check<D>> |
Checks.nullableHas(String name,
Function<? super D,V> function) |
| Modifier and Type | Method and Description |
|---|---|
static <D> Check<D> |
Checks.allOf(Check<? super D>... operands) |
<U extends T> |
Check.and(Check<? super U> operand)
Compose this check with another one using logical AND operator.
|
static <D> Check<D> |
Checks.anyOf(Check<? super D>... operands) |
static <D,V> Check<D> |
Checks.compose(String name,
Function<? super D,V> function,
Check<? super V> check) |
static <D> Check<D> |
Checks.createBuilderWith(Check<D> check) |
static <D> Check<Iterable<D>> |
Checks.every(Check<? super D> check) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInAnyOrder(Check<? super D>... itemChecks) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInOrder(Check<? super D>... itemChecks) |
static <D> Check<Iterable<D>> |
Checks.exists(Check<? super D> check) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInAnyOrder(Check<? super D>... itemChecks) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInOrder(Check<? super D>... itemChecks) |
R |
Builder.matching(Check<? super V> check)
Set check, that a value must match.
|
static Check<Throwable> |
Checks.message(Check<? super String> check) |
static <D> Check<D> |
Checks.not(Check<D> positiveCheck) |
<U extends T> |
Check.or(Check<? super U> operand)
Compose this check with another one using logical OR operator.
|
static <D> Check<D> |
Checks.require(Check<? super D> requirement,
Check<? super D> check) |
static <D> Check<D> |
Checks.require(Check<? super D> requirement,
Check<? super D> check) |
static <D> Check<D> |
Checks.requireNotNull(Check<D> check) |
static <T> boolean |
Check.test(T data,
Check<? super T> check) |
static <T> boolean |
Check.test(T data,
Check<? super T> check,
CheckVisitor checkVisitor) |
static <T> void |
Check.that(T data,
Check<? super T> check) |
static <T> void |
Check.that(T data,
Check<? super T> check,
CheckVisitor logger) |
static fluent.validation.ThrowingCheck |
Checks.throwing(Check<? super Throwable> check) |
static <D> Check<D> |
Checks.transparent(CheckVisitor checkVisitor,
Check<D> check) |
static <D> Check<D> |
Checks.which(Check<D> check) |
L |
CheckDsl.with(Check<? super D> check) |
| Modifier and Type | Method and Description |
|---|---|
static <D> Check<D> |
Checks.allOf(Iterable<Check<? super D>> operands) |
static <D> Check<D> |
Checks.anyOf(Iterable<Check<? super D>> operands) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInAnyOrder(Iterable<Check<? super D>> itemConditions) |
static <D> Check<Iterable<D>> |
Checks.exactItemsInOrder(Iterable<Check<? super D>> itemConditions) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInAnyOrder(Collection<Check<? super D>> itemChecks) |
static <D> Check<Iterable<D>> |
Checks.hasItemsInOrder(Iterable<Check<? super D>> itemConditions) |
| Constructor and Description |
|---|
Final(Check<? super D> check) |
CheckDsl(Check<? super D> check,
Function<Check<D>,L> factory) |
| Constructor and Description |
|---|
CheckDsl(Function<Check<D>,L> factory) |
CheckDsl(Check<? super D> check,
Function<Check<D>,L> factory) |
| Modifier and Type | Method and Description |
|---|---|
CheckVisitor |
MismatchVisitor.label(Check<?> name) |
CheckVisitor |
CheckVisitor.label(Check<?> check) |
CheckVisitor |
CheckVisitorDecorator.label(Check<?> check) |
CheckVisitor |
NoVisitor.label(Check<?> name) |
CheckVisitor |
MismatchVisitor.negative(Check<?> name) |
CheckVisitor |
CheckVisitor.negative(Check<?> check) |
CheckVisitor |
CheckVisitorDecorator.negative(Check<?> check) |
CheckVisitor |
NoVisitor.negative(Check<?> check) |
CheckVisitor |
MismatchVisitor.node(Check<?> name) |
CheckVisitor |
CheckVisitor.node(Check<?> check)
Notify, that this is a node, that will contain a subtree of the evaluation of children.
|
CheckVisitor |
CheckVisitorDecorator.node(Check<?> check) |
CheckVisitor |
NoVisitor.node(Check<?> nodeName) |
| Modifier and Type | Class and Description |
|---|---|
class |
Statement |
| Modifier and Type | Method and Description |
|---|---|
protected Definition.Rule |
Definition.when(Check<? super Context> check) |
Copyright © 2018. All rights reserved.