public abstract class ConditionSet extends java.lang.Object implements java.util.Set<Condition>, java.io.Serializable
Conditions.| Constructor and Description |
|---|
ConditionSet()
Creates an empty set of conditions.
|
ConditionSet(Condition... conditions)
Creates a new set of conditions that consists of several conditions.
|
ConditionSet(@NotNull java.lang.Iterable<? extends Condition> conditions)
Creates a new set of conditions that consists of several conditions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Condition condition) |
boolean |
addAll(@NotNull java.util.Collection<? extends Condition> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(@NotNull java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
@Nullable Condition |
get(@NotNull Attribute attribute)
Returns the condition that corresponds to a specific
Attribute, if such condition is
contained by the set. |
@Nullable Condition |
get(int attributeIndex)
Returns the condition that corresponds to the
Attribute with a specific index, if
such condition is contained by the set. |
int |
hashCode() |
boolean |
isEmpty() |
@NotNull java.util.Iterator<Condition> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(@NotNull java.util.Collection<?> c) |
boolean |
retainAll(@NotNull java.util.Collection<?> c) |
int |
size() |
@NotNull java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public ConditionSet()
public ConditionSet(@NotNull
Condition... conditions)
conditions - An array that contains the conditions, the condition map should consist ofpublic ConditionSet(@NotNull
@NotNull java.lang.Iterable<? extends Condition> conditions)
conditions - An Iterable that allows to iterate the conditions, the condition
map should consist of@Nullable public @Nullable Condition get(@NotNull @NotNull Attribute attribute)
Attribute, if such condition is
contained by the set.attribute - The attribute, the condition that should be returned, corresponds to@Nullable public @Nullable Condition get(int attributeIndex)
Attribute with a specific index, if
such condition is contained by the set.attributeIndex - The index of the attribute, the condition that should be returned,
corresponds topublic int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
@NotNull public @NotNull java.util.Iterator<Condition> iterator()
@NotNull public @NotNull java.lang.Object[] toArray()
@NotNull
public <T> T[] toArray(@NotNull
T[] a)
public boolean add(Condition condition)
public boolean remove(java.lang.Object o)
public boolean containsAll(@NotNull
@NotNull java.util.Collection<?> c)
public boolean addAll(@NotNull
@NotNull java.util.Collection<? extends Condition> c)
public boolean retainAll(@NotNull
@NotNull java.util.Collection<?> c)
public boolean removeAll(@NotNull
@NotNull java.util.Collection<?> c)
public void clear()
public int hashCode()