|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
M - The type of model contained in the group.public interface ModelGroup<M extends Model>
A group of similar models for providing such functions as communication or mutual exclusion.
| Method Summary | |
|---|---|
void |
add(M model)
Adds a model to the group. |
boolean |
contains(Model model)
Determines whether this group contains the given model. |
void |
remove(M model)
Removes a model from the group. |
| Method Detail |
|---|
boolean contains(Model model)
model - The model being checked for group inclusion.
true if the model is contained in this group, else false.
java.lang.NullPointerException - if the given model is null.void add(M model)
model - The model to add to the group.
java.lang.NullPointerException - if the given model is null.void remove(M model)
model - The model to remove from the group.
java.lang.NullPointerException - if the given model is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||