Package bref
Class BrefBlock
java.lang.Object
bref.BrefBlock
Class BrefBlock
represents starting chromosome coordinates and
file offset for the start of a binary reference format (bref) data block.
Instances of class BrefBlock
are immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionBrefBlock
(int chromIndex, int pos, long offset) Constructs aBrefBlock
for the specified data. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the chromosome index of the first marker in this bref block.long
offset()
Returns the file offset of the first marker in this bref block.int
pos()
Returns the chromosome position of the first marker in this bref block.toString()
Returns a string description ofthis
.
-
Constructor Details
-
BrefBlock
public BrefBlock(int chromIndex, int pos, long offset) Constructs aBrefBlock
for the specified data. It is the caller's responsibility to ensure the consistency of the constructor parameters.- Parameters:
chromIndex
- the chromosome indexpos
- the starting chromosome positionoffset
- the file offset in bytes for the bref data block
-
-
Method Details
-
chromIndex
public int chromIndex()Returns the chromosome index of the first marker in this bref block.- Returns:
- the chromosome index of the first marker in this bref block
-
pos
public int pos()Returns the chromosome position of the first marker in this bref block.- Returns:
- the chromosome position of the first marker in this bref block
-
offset
public long offset()Returns the file offset of the first marker in this bref block.- Returns:
- the file offset of the first marker in this bref block
-
toString
Returns a string description ofthis
. The exact details of the representation are unspecified and subject to change.
-