Package psidev.psi.mi.jami.model.impl
Class DefaultResultingSequence
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultResultingSequence
-
- All Implemented Interfaces:
ResultingSequence
public class DefaultResultingSequence extends Object implements ResultingSequence
Default implementation for ResultingSequence Notes: The equals and hashcode methods have been overridden to be consistent with ResultingSequenceComparator- Since:
22/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultResultingSequence()
Constructor for DefaultResultingSequence.DefaultResultingSequence(String oldSequence, String newSequence)
Constructor for DefaultResultingSequence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getNewSequence()
Getter for the fieldnewSequence
.String
getOriginalSequence()
Getter for the fieldoriginalSequence
.Collection<Xref>
getXrefs()
Getter for the fieldxrefs
.int
hashCode()
protected void
initialiseXrefs()
initialiseXrefsprotected void
initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWithvoid
setNewSequence(String sequence)
Sets the new sequence of this objectvoid
setOriginalSequence(String sequence)
Sets the original sequence of this objectString
toString()
-
-
-
Method Detail
-
initialiseXrefs
protected void initialiseXrefs()
initialiseXrefs
-
initialiseXrefsWith
protected void initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWith
- Parameters:
xrefs
- aCollection
object.
-
getNewSequence
public String getNewSequence()
Getter for the field
newSequence
.- Specified by:
getNewSequence
in interfaceResultingSequence
- Returns:
- a
String
object.
-
getOriginalSequence
public String getOriginalSequence()
Getter for the field
originalSequence
.- Specified by:
getOriginalSequence
in interfaceResultingSequence
- Returns:
- a
String
object.
-
getXrefs
public Collection<Xref> getXrefs()
Getter for the field
xrefs
.- Specified by:
getXrefs
in interfaceResultingSequence
- Returns:
- a
Collection
object.
-
setNewSequence
public void setNewSequence(String sequence)
Sets the new sequence of this object- Specified by:
setNewSequence
in interfaceResultingSequence
- Parameters:
sequence
- : new sequence
-
setOriginalSequence
public void setOriginalSequence(String sequence)
Sets the original sequence of this object- Specified by:
setOriginalSequence
in interfaceResultingSequence
- Parameters:
sequence
- : original sequence
-
-