Package org.biojava.bio.symbol
Class IntegerAlphabet.IntegerSymbol
- java.lang.Object
-
- org.biojava.utils.Unchangeable
-
- org.biojava.bio.symbol.IntegerAlphabet.IntegerSymbol
-
- All Implemented Interfaces:
Serializable,Annotatable,AtomicSymbol,BasisSymbol,Symbol,Changeable
- Enclosing class:
- IntegerAlphabet
public static class IntegerAlphabet.IntegerSymbol extends Unchangeable implements AtomicSymbol, Serializable
A single int value.- Author:
- Matthew Pocock
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable
Annotatable.AnnotationForwarder
-
-
Field Summary
-
Fields inherited from interface org.biojava.bio.Annotatable
ANNOTATION
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntegerSymbol(int val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AnnotationgetAnnotation()Should return the associated annotation object.SetgetBases()AlphabetgetMatches()The alphabet containing the symbols matched by this ambiguity symbol.StringgetName()The long name for the symbol.ListgetSymbols()The list of symbols that this symbol is composed from.inthashCode()intintValue()-
Methods inherited from class org.biojava.utils.Unchangeable
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarder
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
-
-
-
-
Constructor Detail
-
IntegerSymbol
protected IntegerSymbol(int val)
-
-
Method Detail
-
getAnnotation
public Annotation getAnnotation()
Description copied from interface:AnnotatableShould return the associated annotation object.- Specified by:
getAnnotationin interfaceAnnotatable- Returns:
- an Annotation object, never null
-
getName
public String getName()
Description copied from interface:SymbolThe long name for the symbol.
-
intValue
public int intValue()
-
getMatches
public Alphabet getMatches()
Description copied from interface:SymbolThe alphabet containing the symbols matched by this ambiguity symbol.This alphabet contains all of, and only, the symbols matched by this symbol. For example, the symbol representing the DNA ambiguity code for W would contain the symbol for A and T from the DNA alphabet.
- Specified by:
getMatchesin interfaceSymbol- Returns:
- the Alphabet of symbols matched by this symbol
-
getSymbols
public List getSymbols()
Description copied from interface:BasisSymbolThe list of symbols that this symbol is composed from.
In the usual case, this list will contain just this single symbol. In the case where a symbol represents an ordered combination of other symbols, the list will contain each of these BasisSymbols.
- Specified by:
getSymbolsin interfaceBasisSymbol- Returns:
- the List of Symbols that this Symbol is built from
-
-