Package | Description |
---|---|
com.yahoo.bullet.common |
Modifier and Type | Method and Description |
---|---|
Validator.Entry |
Validator.Entry.castTo(Function<Object,Object> adapter)
Apply a cast to the value in the
BulletConfig after validation and defaults are applied. |
Validator.Entry |
Validator.Entry.checkIf(Predicate<Object> validator)
Add a
Predicate to check for the field represented by the entry. |
Validator.Entry |
Validator.Entry.defaultTo(Object defaultValue)
Use a default value for the field represented by this Entry.
|
Validator.Entry |
Validator.define(String key)
Creates an instance of the Entry using the name of the field.
|
Validator.Entry |
Validator.Entry.orFail()
Fail if this entry fails to hold.
|
Validator.Entry |
Validator.Entry.unless(Predicate<Object> guard)
Add a
Predicate to guard the checks in this entry. |
Copyright © 2021. All rights reserved.