Package psidev.psi.mi.jami.model.impl
Class DefaultPosition
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultPosition
-
- All Implemented Interfaces:
Position
public class DefaultPosition extends Object implements Position
Default implementation for Position Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousPositionComparator- Since:
22/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Position
C_TERMINAL, C_TERMINAL_FULL, C_TERMINAL_MI, C_TERMINAL_RANGE, C_TERMINAL_RANGE_FULL, C_TERMINAL_RANGE_MI, CERTAIN, CERTAIN_FULL, CERTAIN_MI, GREATER_THAN, GREATER_THAN_FULL, GREATER_THAN_MI, LESS_THAN, LESS_THAN_FULL, LESS_THAN_MI, N_TERMINAL, N_TERMINAL_FULL, N_TERMINAL_MI, N_TERMINAL_RANGE, N_TERMINAL_RANGE_FULL, N_TERMINAL_RANGE_MI, RAGGED_N_TERMINAL, RAGGED_N_TERMINAL_MI, RANGE, RANGE_FULL, RANGE_MI, UNDETERMINED, UNDETERMINED_FULL, UNDETERMINED_MI
-
-
Constructor Summary
Constructors Constructor Description DefaultPosition(long position)This constructor will create an undetermined status if the position is 0 and a certain status if the position is not 0.DefaultPosition(long start, long end)Create a new Position with status = range.DefaultPosition(CvTerm status, long position)Constructor for DefaultPosition.DefaultPosition(CvTerm status, long start, long end)Constructor for DefaultPosition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetEnd()Getter for the fieldend.longgetStart()Getter for the fieldstart.CvTermgetStatus()Getter for the fieldstatus.inthashCode()booleanisPositionUndetermined()isPositionUndeterminedStringtoString()
-
-
-
Constructor Detail
-
DefaultPosition
public DefaultPosition(long start, long end)Create a new Position with status = range.- Parameters:
start- : the fuzzy startend- : the fuzzy end
-
DefaultPosition
public DefaultPosition(CvTerm status, long start, long end)
Constructor for DefaultPosition.
- Parameters:
status- aCvTermobject.start- a long.end- a long.
-
DefaultPosition
public DefaultPosition(CvTerm status, long position)
Constructor for DefaultPosition.
- Parameters:
status- aCvTermobject.position- a long.
-
DefaultPosition
public DefaultPosition(long position)
This constructor will create an undetermined status if the position is 0 and a certain status if the position is not 0.- Parameters:
position- a long.
-
-
Method Detail
-
getStatus
public CvTerm getStatus()
Getter for the field
status.
-
getStart
public long getStart()
Getter for the field
start.
-
getEnd
public long getEnd()
Getter for the field
end.
-
isPositionUndetermined
public boolean isPositionUndetermined()
isPositionUndetermined
- Specified by:
isPositionUndeterminedin interfacePosition- Returns:
- a boolean.
-
-