Class DefaultRange

  • All Implemented Interfaces:
    Range
    Direct Known Subclasses:
    CsvRange, MitabRange

    public class DefaultRange
    extends Object
    implements Range
    Default implementation for Range Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousRangeAndResultingSequenceComparator
    Since:
    22/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Method Detail

      • setPositions

        public void setPositions​(Position start,
                                 Position end)
        Set the positions of the feature range in the interactor sequence
        Specified by:
        setPositions in interface Range
        Parameters:
        start - : start position
        end - : end position
      • isLink

        public boolean isLink()

        isLink

        Specified by:
        isLink in interface Range
        Returns:
        a boolean.
      • setLink

        public void setLink​(boolean link)
        Sets the link boolean for this Range
        Specified by:
        setLink in interface Range
        Parameters:
        link - : the linked value
      • setResultingSequence

        public void setResultingSequence​(ResultingSequence resultingSequence)
        Sets the resultingSequence of this range object
        Specified by:
        setResultingSequence in interface Range
        Parameters:
        resultingSequence - : the resulting sequence
      • getParticipant

        public Entity getParticipant()

        Getter for the field participant.

        Specified by:
        getParticipant in interface Range
        Returns:
        a Entity object.
      • setParticipant

        public void setParticipant​(Entity participant)
        Sets the participating molecule that the range refers to
        Specified by:
        setParticipant in interface Range
        Parameters:
        participant - a Entity object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object