|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjasi.sim.user.util.ClassSearchVisitor<T,S>
T
- Type of class to look through.S
- Type of class to select.public class ClassSearchVisitor<T,S extends T>
A visitor, which selects all instances of a class for the visited objects.
Constructor Summary | |
---|---|
ClassSearchVisitor(java.lang.Class<S> searched)
Constructor for PrintVisitor. |
Method Summary | |
---|---|
java.util.Collection<S> |
getFound()
Get all found instances. |
boolean |
isDone()
All visited objects will be visited. |
void |
visit(T visitable)
Print the visited Objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassSearchVisitor(java.lang.Class<S> searched)
searched
- The searched class.Method Detail |
---|
public void visit(T visitable)
visit
in interface Visitor<T>
visitable
- The visited object.Visitor.isDone()
public boolean isDone()
isDone
in interface Visitor<T>
Visitor.isDone()
public java.util.Collection<S> getFound()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |