public interface FeatureRules extends Iterable<FeatureRule>
Modifier and Type | Method and Description |
---|---|
boolean |
add(FeatureRule rule)
Adds a new rule to this FeatureRules.
|
void |
clear()
Clears this FeatureRules from any rules.
|
Object |
get(int index)
Returns an object given its index.
|
FeatureRules |
getCopy()
Returns a new copy of this FeatureRules.
|
FeatureRule |
getRule(int index)
Returns a
FeatureRule given its index. |
Iterator<FeatureRule> |
iterator()
Returns an iterator over the available
FeatureRule (s) |
boolean |
remove(FeatureRule rule)
Removes the given rule from this FeatureRules.
|
Object |
remove(int index)
Removes the rule stored in the given index.
|
int |
size()
Returns the number of rules contained in this FeatureRules.
|
forEach, spliterator
Object get(int index)
index
- a position in this FeatureRules
FeatureRule getRule(int index)
FeatureRule
given its index.index
- a position in this FeatureRules
FeatureRule
found in the given indexboolean add(FeatureRule rule)
rule
- the new rule to add.int size()
void clear()
Object remove(int index)
index
- index of the rule to remove.boolean remove(FeatureRule rule)
rule
- FeatureRule to removeIterator<FeatureRule> iterator()
FeatureRule
(s)iterator
in interface Iterable<FeatureRule>
FeatureRule
(s)FeatureRules getCopy()