org.biojava.bio.symbol
Class IntegerAlphabet.IntegerSymbol

java.lang.Object
  |
  +--org.biojava.bio.symbol.IntegerAlphabet.IntegerSymbol
Enclosing class:
IntegerAlphabet

public static class IntegerAlphabet.IntegerSymbol
extends java.lang.Object
implements AtomicSymbol, java.io.Serializable

A single int value.

Author:
Matthew Pocock
See Also:
Serialized Form

Constructor Summary
protected IntegerAlphabet.IntegerSymbol(int val)
           
 
Method Summary
 Annotation getAnnotation()
          Should return the associated annotation object.
 Alphabet getMatches()
          Return an alphabet containing only this symbol.
 java.lang.String getName()
          The long name for the symbol.
 char getToken()
          The token for the symbol.
 int intValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerAlphabet.IntegerSymbol

protected IntegerAlphabet.IntegerSymbol(int val)
Method Detail

getAnnotation

public Annotation getAnnotation()
Description copied from interface: Annotatable
Should return the associated annotation object.
Tags copied from interface: Annotatable
Returns:
an Annotation object, never null

getName

public java.lang.String getName()
Description copied from interface: Symbol
The long name for the symbol.
Tags copied from interface: Symbol
Returns:
the long name

getToken

public char getToken()
Description copied from interface: Symbol
The token for the symbol.
Tags copied from interface: Symbol
Returns:
the token

intValue

public int intValue()

getMatches

public Alphabet getMatches()
Description copied from interface: AtomicSymbol
Return an alphabet containing only this symbol.
Specified by:
getMatches in interface AtomicSymbol
Tags copied from interface: Symbol
Returns:
the Alphabet of symbols matched by this symbol