|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.collection.symbol.seq.SequenceSymbolCounter<T>
public final class SequenceSymbolCounter<T>
This object calculates the number of symbols in SymbolSequence[s].
| Method Summary | ||
|---|---|---|
List<Integer> |
getIndices(Set<Symbol<T>> symbols)
|
|
List<Integer> |
getIndices(Symbol<T> symbol)
Return the list of indices of specified symbol |
|
int |
getSymbolNumber()
|
|
int |
getSymbolNumber(Set<Symbol<T>> symbols)
|
|
int |
getSymbolNumber(Symbol<T> symbol)
Return the number of occurrences for the specified symbol. |
|
Set<Symbol<T>> |
getSymbols()
|
|
boolean |
hasSymbol(Symbol<T> symbol)
|
|
static
|
newInstance()
|
|
void |
process(List<SymbolSequence<T>> sequences)
Compute all the occurrences of symbol for a list of symbol sequences |
|
void |
process(SymbolSequence<T>... sequences)
|
|
void |
process(SymbolSequence<T> sequence)
Compute all the occurrences of a sequence of symbols. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static <T> SequenceSymbolCounter<T> newInstance()
public void process(SymbolSequence<T> sequence)
public void process(List<SymbolSequence<T>> sequences)
public void process(SymbolSequence<T>... sequences)
public final List<Integer> getIndices(Symbol<T> symbol)
symbol - the symbol to look for positions on.
public final List<Integer> getIndices(Set<Symbol<T>> symbols)
public int getSymbolNumber()
public final int getSymbolNumber(Set<Symbol<T>> symbols)
public final int getSymbolNumber(Symbol<T> symbol)
symbol - the symbol to look for occurrences on.
public Set<Symbol<T>> getSymbols()
public final boolean hasSymbol(Symbol<T> symbol)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||