org.expasy.jpl.commons.collection.symbol
Interface AlphabetView<T>
- Type Parameters:
T - the data symbol type.
- All Known Subinterfaces:
- Alphabet<T>, DataSymbolRegister<T>
- All Known Implementing Classes:
- AbstractDataSymbolRegister, AlphabetImpl
public interface AlphabetView<T>
This AlphabetView interface is implemented by any read-only alphabet.
An alphabet is a set of finite symbols.
- Version:
- 1.0
- Author:
- nikitin
lookupSymbolNode
TreeView<? extends Symbol<T>> lookupSymbolNode(char name)
- Returns:
- a tree node over symbol of type
T
lookupSymbol
Symbol<T> lookupSymbol(char name)
- Returns:
- a symbol of type
T
hasSymbol
boolean hasSymbol(char name)
- Returns:
- true if symbol exists
getLetters
Set<Character> getLetters()
- Returns:
- the set of letters.
getRegEx
String getRegEx()
- Returns:
- the pattern that match this alphabet
getSymbolNumber
int getSymbolNumber()
- Returns:
- the number of symbols
Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.