public class DefaultFeatureRules extends ArrayList<FeatureRule> implements FeatureRules
modCount
Constructor and Description |
---|
DefaultFeatureRules() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(FeatureRule rule)
Adds a new rule to this FeatureRules.
|
FeatureRules |
getCopy()
Returns a new copy of this FeatureRules.
|
FeatureRule |
getRule(int index)
Returns a
FeatureRule given its index. |
boolean |
remove(FeatureRule rule)
Removes the given rule from this FeatureRules.
|
void |
validate(Feature feature)
Deprecated.
use validate(Feature feature, int mode)
|
void |
validate(Feature feature,
int mode) |
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, get, iterator, remove, size
forEach, spliterator
containsAll, equals, hashCode
parallelStream, stream
public boolean add(FeatureRule rule)
FeatureRules
add
in interface Collection<FeatureRule>
add
in interface List<FeatureRule>
add
in interface FeatureRules
add
in class ArrayList<FeatureRule>
rule
- the new rule to add.public FeatureRule getRule(int index)
FeatureRules
FeatureRule
given its index.getRule
in interface FeatureRules
index
- a position in this FeatureRules
FeatureRule
found in the given indexpublic boolean remove(FeatureRule rule)
FeatureRules
remove
in interface FeatureRules
rule
- FeatureRule to removepublic FeatureRules getCopy()
FeatureRules
getCopy
in interface FeatureRules
public void validate(Feature feature) throws DataException
feature
- DataException
public void validate(Feature feature, int mode) throws DataException
DataException