Package org.biojava.bio.program.indexdb
Class Record.Impl
java.lang.Object
org.biojava.bio.program.indexdb.Record.Impl
- All Implemented Interfaces:
Record
- Enclosing interface:
- Record
Impl is the default implementation of Record.- Author:
- Matthew Pocock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.program.indexdb.Record
Record.Impl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()getFilereturns the random access file in which the record belongs.getID()getIDreturns the primary identifier of the record.intgetLengthreturns the length of the record in bytes.longgetOffsetreturns the byte offset in the file at which the record begins.
-
Constructor Details
-
Impl
Creates a newImplrecord.- Parameters:
id- aStringprimary ID.file- aRAFfile.offset- alongbyte offset.length- anintbyte record length.
-
-
Method Details
-
getID
Description copied from interface:RecordgetIDreturns the primary identifier of the record. -
getFile
Description copied from interface:RecordgetFilereturns the random access file in which the record belongs. -
getOffset
Description copied from interface:RecordgetOffsetreturns the byte offset in the file at which the record begins. -
getLength
Description copied from interface:RecordgetLengthreturns the length of the record in bytes.
-