|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava3.core.sequence.location.SimplePoint
public class SimplePoint
Basic implementation of the Point interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojava3.core.sequence.location.template.Point |
|---|
Point.Resolver<T extends Point> |
| Constructor Summary | |
|---|---|
protected |
SimplePoint()
|
|
SimplePoint(int position)
|
|
SimplePoint(int position,
boolean unknown,
boolean uncertain)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SimplePoint()
public SimplePoint(int position)
public SimplePoint(int position,
boolean unknown,
boolean uncertain)
| Method Detail |
|---|
public Integer getPosition()
Point
getPosition in interface Pointprotected void setPosition(int position)
public boolean isUnknown()
Point>80as encoded by UniProt.
isUnknown in interface Pointprotected void setUnknown(boolean unknown)
public boolean isUncertain()
Point?80.
isUncertain in interface Pointprotected void setUncertain(boolean uncertain)
public Point reverse(int length)
Point
reverse in interface Pointlength - Length of the sequence to translate topublic Point offset(int distance)
Point
offset in interface Point
protected int reverse(int position,
int length)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int compareTo(Point o)
compareTo in interface Comparable<Point>public boolean isLower(Point point)
Point
isLower in interface Pointpublic boolean isHigher(Point point)
Point
isHigher in interface Pointpublic Point clonePoint()
Point
clonePoint in interface Point
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||