public class SimplePoint extends Object implements Serializable, Point
Point.Resolver<T extends Point>
Modifier | Constructor and Description |
---|---|
protected |
SimplePoint() |
|
SimplePoint(int position) |
|
SimplePoint(int position,
boolean unknown,
boolean uncertain) |
Modifier and Type | Method and Description |
---|---|
Point |
clonePoint()
Returns a copy of this point
|
int |
compareTo(Point o) |
boolean |
equals(Object obj) |
Integer |
getPosition()
Returns the position held by this object
|
int |
hashCode() |
boolean |
isHigher(Point point)
Returns true if the point is higher in value to the current point
|
boolean |
isLower(Point point)
Returns true if the current point is at a lower position than the
point given.
|
boolean |
isUncertain()
Returns a true if the exact point is unknown.
|
boolean |
isUnknown()
Returns true if the current position is unknown but is
beyond the position encoded for.
|
Point |
offset(int distance)
Returns a new point offset by the given distance
|
Point |
reverse(int length)
Returns the equivalent position on the reverse strand
|
protected int |
reverse(int position,
int length) |
protected void |
setPosition(int position) |
protected void |
setUncertain(boolean uncertain) |
protected void |
setUnknown(boolean unknown) |
String |
toString() |
protected SimplePoint()
public SimplePoint(int position)
public SimplePoint(int position, boolean unknown, boolean uncertain)
public Integer getPosition()
Point
getPosition
in interface Point
protected void setPosition(int position)
public boolean isUnknown()
Point
>80as encoded by UniProt.
protected void setUnknown(boolean unknown)
public boolean isUncertain()
Point
?80.
isUncertain
in interface Point
protected void setUncertain(boolean uncertain)
public Point reverse(int length)
Point
public Point offset(int distance)
Point
protected int reverse(int position, int length)
public int compareTo(Point o)
compareTo
in interface Comparable<Point>
public boolean isLower(Point point)
Point
public boolean isHigher(Point point)
Point
public Point clonePoint()
Point
clonePoint
in interface Point
Copyright © 2000–2019 BioJava. All rights reserved.