Package VCF.Mappers
Interface Mapper<M>
-
- Type Parameters:
M
- Type that is mapped to
- All Known Implementing Classes:
DepthMapper
public interface Mapper<M>
Maps from string to object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description M[][]
get2DArray(int size)
Get a 2d array of the returned typeM[]
getArray(int size)
Get an array of the returned typeM
map(java.lang.String v)
Map from string to object
-
-
-
Method Detail
-
map
M map(java.lang.String v) throws VCFUnexpectedDataException
Map from string to object- Parameters:
v
- The String- Returns:
- The object
- Throws:
VCFUnexpectedDataException
- If there is unexpected data in the VCF
-
getArray
M[] getArray(int size)
Get an array of the returned type- Parameters:
size
- Size of the array- Returns:
- The array
-
get2DArray
M[][] get2DArray(int size)
Get a 2d array of the returned type- Parameters:
size
- Size of the major dimension- Returns:
- The array
-
-