Class Location

java.lang.Object
org.dishevelled.bio.protein.uniprot.Location

@Immutable public final class Location extends Object
Location.
Since:
2.5
Author:
Michael Heuer
  • Constructor Details

    • Location

      Location(Position begin, Position end, @Nullable String sequence)
      Create a new location with the specified begin and end positions.
      Parameters:
      begin - begin position, must not be null
      end - end position, must not be null
      sequence - location sequence, if any
    • Location

      Location(Position position, @Nullable String sequence)
      Create a new location with the specified position.
      Parameters:
      position - position, must not be null
      sequence - location sequence, if any
  • Method Details

    • getBegin

      public Position getBegin()
      Return the begin position for this location, may be null.
      Returns:
      the begin position for this location, may be null
    • getEnd

      public Position getEnd()
      Return the end position for this location, may be null.
      Returns:
      the end position for this location, may be null
    • getPosition

      public Position getPosition()
      Return the position for this location, may be null.
      Returns:
      the position for this location, may be null
    • getSequence

      public String getSequence()
      Return the sequence for this location, may be null.
      Returns:
      the sequence for this location, may be null