uk.ac.man.bioinf.sequence
Class DefaultEditableSequence
java.lang.Object
|
+--uk.ac.man.bioinf.sequence.AbstractSequence
|
+--uk.ac.man.bioinf.sequence.AbstractMutableSequence
|
+--uk.ac.man.bioinf.sequence.AbstractEditableSequence
|
+--uk.ac.man.bioinf.sequence.DefaultEditableSequence
- All Implemented Interfaces:
- EditableSequence, Identifiable, MutableSequence, Sequence, SequenceEventProvider
- public class DefaultEditableSequence
- extends AbstractEditableSequence
- implements EditableSequence
DefaultEditableSequence.java
Created: Thu Mar 2 20:27:46 2000
- Version:
- $Id: DefaultEditableSequence.java,v 1.6 2001/04/11 17:04:43 lord Exp $
- Author:
- Phillip Lord
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultEditableSequence
public DefaultEditableSequence(Element[] elements,
SequenceType type,
Identifier identifier)
DefaultEditableSequence
public DefaultEditableSequence(Sequence sequence,
SequenceType type)
DefaultEditableSequence
public DefaultEditableSequence(Sequence sequence)
getIdentifier
public Identifier getIdentifier()
- Specified by:
getIdentifier
in interface Identifiable
getElementAt
public Element getElementAt(int index)
- Description copied from interface:
Sequence
- Returns an element at a given location.
- Specified by:
getElementAt
in interface Sequence
- Parameters:
index
- the location of the target element
- Returns:
- the element
getLength
public int getLength()
- Description copied from interface:
Sequence
- Returns the length of the sequence.
- Specified by:
getLength
in interface Sequence
- Returns:
- the length of the sequence
getSequenceAsElements
public Element[] getSequenceAsElements()
- Description copied from interface:
Sequence
- Returns the sequence as an array of elements.
- Specified by:
getSequenceAsElements
in interface Sequence
- Returns:
- the sequence
setElementAtQuietly
protected Element setElementAtQuietly(Element elem,
int index)
- Specified by:
setElementAtQuietly
in class AbstractEditableSequence
insertElementAtQuietly
protected void insertElementAtQuietly(Element elem,
int index)
- Specified by:
insertElementAtQuietly
in class AbstractEditableSequence
deleteElementAtQuietly
protected Element deleteElementAtQuietly(int index)
- Description copied from class:
AbstractEditableSequence
- Do the actual deletion but dont do any event signalling. This
enables all the deletions to use this method without causing
multiple events for deletions longer than one in length
- Specified by:
deleteElementAtQuietly
in class AbstractEditableSequence
- Parameters:
index
- the element to delete
- Returns:
- the element just deleted