public interface Position
Modifier and Type | Field and Description |
---|---|
static String |
BETWEEN_BASES
A symbol representing a position that falls in between two bases,
eg. 2^3 falls somewhere in the gap between 2 and 3.
|
static Position |
EMPTY_POSITION
The empty position lies nowhere.
|
static String |
IN_RANGE
A symbol representing a position that occupies a single base somewhere
in a range, eg. 5.10 falls on some base between 5 and 10.
|
Modifier and Type | Method and Description |
---|---|
int |
getEnd()
Returns the end of the range of bases this base could lie in.
|
boolean |
getFuzzyEnd()
Returns true if the position has a fuzzy end.
|
boolean |
getFuzzyStart()
Returns true if the position has a fuzzy start.
|
int |
getStart()
Returns the beginning of the range of bases this base could lie in.
|
String |
getType()
Returns the type of this position if it is not a point/single position.
|
Position |
translate(int distance)
Takes this position and returns a copy translated by 'distance' bases.
|
static final Position EMPTY_POSITION
static final String BETWEEN_BASES
static final String IN_RANGE
boolean getFuzzyStart()
boolean getFuzzyEnd()
int getStart()
int getEnd()
Position translate(int distance)
distance
- the distance to translate it.Copyright © 2014 BioJava. All rights reserved.