Class PositionMapping
- java.lang.Object
-
- uk.ac.ebi.pride.jmztab2.utils.parser.PositionMapping
-
public final class PositionMapping extends Object
Create and maintain a couple of mappings between physical position and logical position. Physical position: Integer, the position of mzTab file. Logical position: String, the internal order of specification.- Since:
- 16/10/13
- Author:
- qingwei
-
-
Constructor Summary
Constructors Constructor Description PositionMapping(MZTabColumnFactory factory, String headerLine)
Constructor for PositionMapping.PositionMapping(MZTabColumnFactory factory, String[] headerList)
Constructor for PositionMapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(Integer key)
containsKey.String
get(Integer key)
get.boolean
isEmpty()
isEmpty.Set<Integer>
keySet()
keySet.void
put(Integer physicalPosition, String logicalPosition)
put.SortedMap<String,Integer>
reverse()
Exchange key and value to "LogicalPosition, PhysicalPosition".int
size()
size.Collection<String>
values()
values.
-
-
-
Constructor Detail
-
PositionMapping
public PositionMapping(MZTabColumnFactory factory, String headerLine)
Constructor for PositionMapping.
- Parameters:
factory
- aMZTabColumnFactory
object.headerLine
- aString
object.
-
PositionMapping
public PositionMapping(MZTabColumnFactory factory, String[] headerList)
Constructor for PositionMapping.
- Parameters:
factory
- aMZTabColumnFactory
object.headerList
- an array ofString
objects.
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
isEmpty.
- Returns:
- a boolean.
-
size
public int size()
size.
- Returns:
- a int.
-
containsKey
public boolean containsKey(Integer key)
containsKey.
- Parameters:
key
- aInteger
object.- Returns:
- a boolean.
-
values
public Collection<String> values()
values.
- Returns:
- a
Collection
object.
-
-