Class SimplePoint
java.lang.Object
org.biojava3.core.sequence.location.SimplePoint
- All Implemented Interfaces:
Comparable<Point>,Point
- Direct Known Subclasses:
FuzzyPoint
Basic implementation of the Point interface.
- Author:
- ayates
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava3.core.sequence.location.template.Point
Point.Resolver<T extends Point> -
Constructor Summary
ConstructorsConstructorDescriptionSimplePoint(int position) SimplePoint(int position, boolean unknown, boolean uncertain) -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this pointintbooleanReturns the position held by this objectinthashCode()booleanReturns true if the point is higher in value to the current pointbooleanReturns true if the current point is at a lower position than the point given.booleanReturns a true if the exact point is unknown.booleanReturns true if the current position is unknown but is beyond the position encoded for.offset(int distance) Returns a new point offset by the given distancereverse(int length) Returns the equivalent position on the reverse strandtoString()
-
Constructor Details
-
SimplePoint
public SimplePoint(int position) -
SimplePoint
public SimplePoint(int position, boolean unknown, boolean uncertain)
-
-
Method Details
-
getPosition
Description copied from interface:PointReturns the position held by this object- Specified by:
getPositionin interfacePoint
-
isUnknown
public boolean isUnknown()Description copied from interface:PointReturns true if the current position is unknown but is beyond the position encoded for. This is the same as the position>80
as encoded by UniProt. -
isUncertain
public boolean isUncertain()Description copied from interface:PointReturns a true if the exact point is unknown. Equivalent position from UniProt is?80
.- Specified by:
isUncertainin interfacePoint
-
reverse
Description copied from interface:PointReturns the equivalent position on the reverse strand -
offset
Description copied from interface:PointReturns a new point offset by the given distance -
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Point>
-
isLower
Description copied from interface:PointReturns true if the current point is at a lower position than the point given. -
isHigher
Description copied from interface:PointReturns true if the point is higher in value to the current point -
clonePoint
Description copied from interface:PointReturns a copy of this point- Specified by:
clonePointin interfacePoint
-