org.dasein.util
Class Filter<S,T>

java.lang.Object
  extended by org.dasein.util.Filter<S,T>
Type Parameters:
S - the type of objects in the source
T - the type of objects in the filtered results

public abstract class Filter<S,T>
extends Object

Enables rapid development of fast collection filters that potentially map to different collection types.

Author:
George Reese (george.reese@enstratus.com

Constructor Summary
Filter()
           
 
Method Summary
 Collection<T> filter(Iterable<S> source)
           
 Collection<T> filter(S[] source)
           
abstract  T test(S item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Method Detail

filter

public Collection<T> filter(Iterable<S> source)

filter

public Collection<T> filter(S[] source)

test

public abstract T test(S item)


Copyright © 2012 enStratus Networks Inc. All Rights Reserved.