|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.japura.controller.Group
public final class Group
Copyright (C) 2010-2012 Carlos Eduardo Leite de Andrade
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see www.gnu.org/licenses/
For more information, contact: www.japura.org
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object obj)
|
|
void |
free()
|
|
void |
freeAll(java.lang.Class<?> clss)
|
|
|
get(java.lang.Class<E> cls)
Get the controller of a specific class from this group. |
|
ControllerModel |
get(int id)
Get the controller of a specific identifier from this group. |
|
|
get(int id,
java.lang.Class<E> cls)
Get the controller of a specific class and identifier from this group. |
|
java.util.List<ControllerModel> |
getAll()
Get the all controllers from this group. |
|
|
getAll(java.lang.Class<E> cls)
Get the all controllers of a specific class from this group. |
|
int |
getId()
|
|
int |
hashCode()
|
|
boolean |
isInstancied(java.lang.Class<?> cls)
Indicates whether the controller is instantiated in this group. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getId()
public <E> java.util.List<E> getAll(java.lang.Class<E> cls)
cls - the controller's class
public java.util.List<ControllerModel> getAll()
public <E> E get(java.lang.Class<E> cls)
cls - the controller's class
NULL if its not exist.
public <E> E get(int id,
java.lang.Class<E> cls)
id - the controller's identifiercls - the controller's class
NULL if its not exist.public ControllerModel get(int id)
id - the controller's identifier
NULL if its not exist.public void freeAll(java.lang.Class<?> clss)
public void free()
public boolean isInstancied(java.lang.Class<?> cls)
cls - controller's class
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||