public class DefaultCollectionConditional extends Object implements Serializable, CollectionConditional<DefaultCollectionConditional>
CollectionConditional
.CollectionConditional.CollectionConditionalMatchStrategy
TYPE
Constructor and Description |
---|
DefaultCollectionConditional(CollectionConditional<?> conditional) |
DefaultCollectionConditional(String field) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
DefaultCollectionConditional |
copy() |
boolean |
equals(Object o) |
List<Conditional<?>> |
getConditionals()
Conditionals that will be matched against the collection members.
|
String |
getField()
Field name target for this conditional.
|
String |
getMatchStrategy()
The match strategy for this conditional.
|
int |
hashCode() |
boolean |
isMatchIfEmpty()
Whether or not empty is considered a valid match.
|
void |
setConditionals(List<Conditional<?>> conditionals)
Conditionals that will be matched against the collection members.
|
void |
setField(String field)
Field name target for this conditional.
|
void |
setMatchIfEmpty(boolean matchIfEmpty)
Whether or not empty is considered a valid match.
|
void |
setMatchStrategy(String matchStrategy)
The match strategy for this conditional.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
allMatch, anyMatch, clearConditionals, conditional, conditionals, field, getType, matchIfEmpty, matchStrategy, notMatchIfEmpty
self, when
public DefaultCollectionConditional(String field)
public DefaultCollectionConditional(CollectionConditional<?> conditional)
public DefaultCollectionConditional copy()
copy
in interface Copyable<DefaultCollectionConditional>
public String getField()
getField
in interface CollectionConditional<DefaultCollectionConditional>
public String getMatchStrategy()
CollectionConditionalMatchStrategy#ALL
,
this will match only when all collection members are a match. If
CollectionConditionalMatchStrategy#ANY
, this will match when at least one collection
member is a match.getMatchStrategy
in interface CollectionConditional<DefaultCollectionConditional>
public List<Conditional<?>> getConditionals()
getConditionals
in interface CollectionConditional<DefaultCollectionConditional>
public boolean isMatchIfEmpty()
isMatchIfEmpty
in interface CollectionConditional<DefaultCollectionConditional>
public void setField(String field)
setField
in interface CollectionConditional<DefaultCollectionConditional>
public void setMatchStrategy(String matchStrategy)
CollectionConditionalMatchStrategy#ALL
,
this will match only when all collection members are a match. If
CollectionConditionalMatchStrategy#ANY
, this will match when at least one collection
member is a match.setMatchStrategy
in interface CollectionConditional<DefaultCollectionConditional>
public void setConditionals(List<Conditional<?>> conditionals)
setConditionals
in interface CollectionConditional<DefaultCollectionConditional>
public void setMatchIfEmpty(boolean matchIfEmpty)
setMatchIfEmpty
in interface CollectionConditional<DefaultCollectionConditional>
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.