Package | Description |
---|---|
net.morimekta.providence.util |
Modifier and Type | Method and Description |
---|---|
static <M extends PMessage<M>,E extends Exception> |
MessageValidator.builder(PMessageDescriptor<M> descriptor,
Function<String,E> onMismatch)
Deprecated.
Create a message validator that throws specific exception on failure.
|
<M2 extends PMessage<M2>> |
MessageValidator.Builder.expect(PField<M> field,
PMessageDescriptor<M2> descriptor,
Consumer<MessageValidator.Builder<M2,E>> builderConsumer)
Deprecated.
Given the field and type descriptor (which must match the field type),
build an inner validator to check the value of the field.
|
MessageValidator.Builder<M,E> |
MessageValidator.Builder.expect(String text,
Predicate<M> predicate)
Deprecated.
Make a specific expectation for the message.
|
MessageValidator.Builder<M,E> |
MessageValidator.Builder.expectMissing(PField<M>... fields)
Deprecated.
Expect field to be present on message.
|
MessageValidator.Builder<M,E> |
MessageValidator.Builder.expectMissing(String text,
PField<M> field)
Deprecated.
Expect field to be present on message.
|
MessageValidator.Builder<M,E> |
MessageValidator.Builder.expectNotNull()
Deprecated.
Expect the message to be non-null value.
|
MessageValidator.Builder<M,E> |
MessageValidator.Builder.expectNotNull(String text)
Deprecated.
Expect the message to be non-null value.
|
MessageValidator.Builder<M,E> |
MessageValidator.Builder.expectPresent(PField<M>... fields)
Deprecated.
Expect field to be present on message.
|
MessageValidator.Builder<M,E> |
MessageValidator.Builder.expectPresent(String text,
PField<M> field)
Deprecated.
Expect field to be present on message.
|
Modifier and Type | Method and Description |
---|---|
<M2 extends PMessage<M2>> |
MessageValidator.Builder.expect(PField<M> field,
PMessageDescriptor<M2> descriptor,
Consumer<MessageValidator.Builder<M2,E>> builderConsumer)
Deprecated.
Given the field and type descriptor (which must match the field type),
build an inner validator to check the value of the field.
|
Copyright © 2015–2020 morimekta.net. All rights reserved.