C
- the effective type of constraint generated by this builderpublic class OneInField<C extends Constraint> extends Object
Modifier and Type | Field and Description |
---|---|
protected FilterFactory<C> |
factory |
protected Mapping |
field |
protected boolean |
forceEmpty |
protected boolean |
orEmpty |
protected Collection<Object> |
values |
Modifier | Constructor and Description |
---|---|
protected |
OneInField(FilterFactory<C> factory,
Mapping field,
Collection<Object> values) |
Modifier and Type | Method and Description |
---|---|
C |
build()
Generates the effective constraint.
|
OneInField<C> |
forceEmpty()
Signals that an empty input list is not ignored but enforces the target field to be empty.
|
OneInField<C> |
orEmpty()
Signals that this constraint is also fulfilled if the target field is empty.
|
protected final Collection<Object> values
protected FilterFactory<C extends Constraint> factory
protected final Mapping field
protected boolean orEmpty
protected boolean forceEmpty
protected OneInField(FilterFactory<C> factory, Mapping field, Collection<Object> values)
public OneInField<C> orEmpty()
This will convert this constraint into a filter.
public OneInField<C> forceEmpty()
This will convert this constraint into a filter.
Copyright © 2018. All rights reserved.