Class DefaultPosition

  • All Implemented Interfaces:
    Position

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

      • DefaultPosition

        public DefaultPosition​(long start,
                               long end)
        Create a new Position with status = range.
        Parameters:
        start - : the fuzzy start
        end - : the fuzzy end
      • DefaultPosition

        public DefaultPosition​(CvTerm status,
                               long start,
                               long end)

        Constructor for DefaultPosition.

        Parameters:
        status - a CvTerm object.
        start - a long.
        end - a long.
      • DefaultPosition

        public DefaultPosition​(CvTerm status,
                               long position)

        Constructor for DefaultPosition.

        Parameters:
        status - a CvTerm object.
        position - a long.
      • DefaultPosition

        public DefaultPosition​(long position)
        This constructor will create an undetermined status if the position is 0 and a certain status if the position is not 0.
        Parameters:
        position - a long.
    • Method Detail

      • getStart

        public long getStart()

        Getter for the field start.

        Specified by:
        getStart in interface Position
        Returns:
        a long.
      • getEnd

        public long getEnd()

        Getter for the field end.

        Specified by:
        getEnd in interface Position
        Returns:
        a long.
      • isPositionUndetermined

        public boolean isPositionUndetermined()

        isPositionUndetermined

        Specified by:
        isPositionUndetermined in interface Position
        Returns:
        a boolean.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object