public class ListValueImpl<T,U> extends BaseValueAccessor<List<T>,List<U>> implements ListValue<T>
Constructor and Description |
---|
ListValueImpl(String name,
ValueConverter<T,U> entryConverter,
ListVariableOperand<U> listVariableOperand) |
Modifier and Type | Method and Description |
---|---|
Predicate |
contains(T entry)
Builds a predicate that checks if the value contains the given entry.
|
Predicate |
containsAny(Collection<T> entries)
Builds a predicate that checks if the value contains any of the given entries.
|
Predicate |
containsNonNull()
Builds a predicate that checks if the value contains a non-null entry.
|
Predicate |
containsNull()
Builds a predicate that checks if the value contains a null entry.
|
Predicate |
exists()
Builds a predicate that checks if the value exists.
|
getName, getValueConverter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getValueConverter
public ListValueImpl(String name, ValueConverter<T,U> entryConverter, ListVariableOperand<U> listVariableOperand)
public Predicate exists()
ComplexVariableOperand
Builds a predicate that checks if the value exists.
For fields, this will always match. For variables it will match if a variable with the given name is present.
exists
in interface ComplexVariableOperand
public Predicate containsNull()
ListVariableOperand
Builds a predicate that checks if the value contains a null entry.
containsNull
in interface ListVariableOperand<T>
public Predicate containsNonNull()
ListVariableOperand
Builds a predicate that checks if the value contains a non-null entry.
containsNonNull
in interface ListVariableOperand<T>
public Predicate contains(T entry)
ListVariableOperand
Builds a predicate that checks if the value contains the given entry.
contains
in interface ListVariableOperand<T>
entry
- the entry to be checkedpublic Predicate containsAny(Collection<T> entries)
ListVariableOperand
Builds a predicate that checks if the value contains any of the given entries.
containsAny
in interface ListVariableOperand<T>
entries
- the entries to be checkedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.