Package org.biopax.paxtools.util
Class ClassFilterSet<E,F extends E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.biopax.paxtools.util.AbstractFilterSet<E,F>
org.biopax.paxtools.util.ClassFilterSet<E,F>
- Type Parameters:
E- Superset's type e.g. BioPAXElementF- Subset's type e.g. Protein. F must extend E
- All Implemented Interfaces:
Iterable<F>,Collection<F>,Set<F>,Filter<E>
A FilterSet that filters based on the class. For example, it is useful for creating a Set of Proteins from a
Set of BioPAXElements.
-
Field Summary
FieldsFields inherited from class org.biopax.paxtools.util.AbstractFilterSet
baseSet -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.biopax.paxtools.util.AbstractFilterSet
contains, iterator, sizeMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
filterClass
-
-
Constructor Details
-
ClassFilterSet
-
-
Method Details
-
filter
This filter method implementation filters based on isInstance function.- Parameters:
value- Object to be tested- Returns:
- true if value is instance of F.
-