cz.cuni.amis.utils
Class Query<T>

java.lang.Object
  extended by cz.cuni.amis.utils.Query<T>

public abstract class Query<T>
extends java.lang.Object

Usefull for queriing sets of objects with some common property. Itarates all elements in the collection and returns


Constructor Summary
Query()
           
 
Method Summary
protected abstract  boolean filter(T o)
           
 java.util.List<T> query(java.util.Collection<T> collection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query()
Method Detail

filter

protected abstract boolean filter(T o)

query

public java.util.List<T> query(java.util.Collection<T> collection)