Class DefaultCollectionConditional
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.extension.conditionals.DefaultCollectionConditional
- All Implemented Interfaces:
- Conditional<DefaultCollectionConditional>,- Copyable<DefaultCollectionConditional>,- CollectionConditional<DefaultCollectionConditional>,- Serializable
public class DefaultCollectionConditional
extends Object
implements Serializable, CollectionConditional<DefaultCollectionConditional>
The default implementation of 
CollectionConditional.- Author:
- Nick Crum (ncrum)
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.conditionals.CollectionConditionalCollectionConditional.CollectionConditionalMatchStrategy
- 
Field SummaryFields inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.conditionals.CollectionConditionalTYPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancopy()booleanList<Conditional<?>>Conditionals that will be matched against the collection members.getField()Field name target for this conditional.The match strategy for this conditional.inthashCode()booleanWhether or not empty is considered a valid match.voidsetConditionals(List<Conditional<?>> conditionals) Conditionals that will be matched against the collection members.voidField name target for this conditional.voidsetMatchIfEmpty(boolean matchIfEmpty) Whether or not empty is considered a valid match.voidsetMatchStrategy(String matchStrategy) The match strategy for this conditional.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.conditionals.CollectionConditionalallMatch, anyMatch, clearConditionals, conditional, conditionals, field, getType, matchIfEmpty, matchStrategy, notMatchIfEmptyMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Conditionalself
- 
Constructor Details- 
DefaultCollectionConditional
- 
DefaultCollectionConditional
 
- 
- 
Method Details- 
copy- Specified by:
- copyin interface- Copyable<DefaultCollectionConditional>
- Returns:
- a deep copy of this instance
 
- 
getFieldField name target for this conditional.- Specified by:
- getFieldin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
getMatchStrategyThe match strategy for this conditional. IfCollectionConditional.CollectionConditionalMatchStrategy.ALL, this will match only when all collection members are a match. IfCollectionConditional.CollectionConditionalMatchStrategy.ANY, this will match when at least one collection member is a match.- Specified by:
- getMatchStrategyin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
getConditionalsConditionals that will be matched against the collection members.- Specified by:
- getConditionalsin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
isMatchIfEmptypublic boolean isMatchIfEmpty()Whether or not empty is considered a valid match.- Specified by:
- isMatchIfEmptyin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
setFieldField name target for this conditional.- Specified by:
- setFieldin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
setMatchStrategyThe match strategy for this conditional. IfCollectionConditional.CollectionConditionalMatchStrategy.ALL, this will match only when all collection members are a match. IfCollectionConditional.CollectionConditionalMatchStrategy.ANY, this will match when at least one collection member is a match.- Specified by:
- setMatchStrategyin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
setConditionalsConditionals that will be matched against the collection members.- Specified by:
- setConditionalsin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
setMatchIfEmptypublic void setMatchIfEmpty(boolean matchIfEmpty) Whether or not empty is considered a valid match.- Specified by:
- setMatchIfEmptyin interface- CollectionConditional<DefaultCollectionConditional>
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-