Class RichLocation.Strand

    • Method Detail

      • forValue

        public static RichLocation.Strand forValue​(int value)
        Returns the strand object that matches the number given. Throws an exception if it could not recognise the number. Number is usually 1,-1,0.
        Parameters:
        value - the number of the strand.
        Returns:
        the strand matching that number.
      • forName

        public static RichLocation.Strand forName​(String name)
        Returns the strand object that matches the symbol given. Throws an exception if it could not recognise the symbol. Symbol is usually +,-,?.
        Parameters:
        name - the symbol of the strand.
        Returns:
        the strand matching that symbol.
      • intValue

        public int intValue()
        Returns the numeric value of this strand.
        Returns:
        the numeric value.
      • getName

        public String getName()
        Returns the string symbol of this strand.
        Returns:
        the string symbol.
      • equals

        public boolean equals​(Object o)
        Strands are equal if their numbers and symbols match.
        Overrides:
        equals in class Object