|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureRules
This is a container for FeatureRules. Besides getting a rule by index, this structure allows adding a rule, removing a rule, iterating over the rules and copying the whole structure.
Method Summary | |
---|---|
FeatureRule |
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 |
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. |
Method Detail |
---|
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 indexFeatureRule 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 remove
Iterator iterator()
FeatureRule
(s)
FeatureRule
(s)FeatureRules getCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |