Package org.cytoscape.filter.model
Interface TransformerSource<C,E>
- Type Parameters:
C- The context type of the elements thisFilteroperates on.E- The element type thisFilteroperates on.
public interface TransformerSource<C,E>
Provides a sequence of elements from a context. Instances of this interface
must be threadsafe.
Module: filter-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>filter-api</artifactId>
</dependency>Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the context object thisTransformerSourceis compatible with.intgetElementCount(C context)Returns the number of elements that could be produced from the given context.getElementList(C context)Returns aListof elements from the given context.Returns the type of the elements thisTransformerSourceis compatible with.
-
Method Details
-
getElementList
Returns aListof elements from the given context.- Parameters:
context- the source of the elements.- Returns:
- a
Listof elements.
-
getContextType
Returns the type of the context object thisTransformerSourceis compatible with.- Returns:
- the type of the context object.
-
getElementType
Returns the type of the elements thisTransformerSourceis compatible with.- Returns:
- the type of the elements.
-
getElementCount
Returns the number of elements that could be produced from the given context.- Parameters:
context- the context whose elements should be counted.- Returns:
- the number of elements that could be produced from the given context.
-