Package pl.poznan.put.structure.formats
Class Ct.ExtendedEntry
java.lang.Object
pl.poznan.put.structure.formats.Ct.ExtendedEntry
- All Implemented Interfaces:
Comparable<Ct.ExtendedEntry>
- Direct Known Subclasses:
ImmutableExtendedEntry
- Enclosing class:
- Ct
@Immutable
public abstract static class Ct.ExtendedEntry
extends Object
implements Comparable<Ct.ExtendedEntry>
A single entry in the CT formatted structure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
after()
abstract int
before()
comment()
int
static Ct.ExtendedEntry
fromEntry
(BpSeq.Entry entry) Converts a BPSEQ entry into an instance of this class.static Ct.ExtendedEntry
fromString
(String line) Creates an instance from a string in format: int string int int int int.boolean
abstract int
index()
boolean
isPaired()
abstract int
original()
abstract int
pair()
abstract char
seq()
toString()
-
Constructor Details
-
ExtendedEntry
public ExtendedEntry()
-
-
Method Details
-
fromString
Creates an instance from a string in format: int string int int int int.- Parameters:
line
- A line of text formatted as a CT content line.- Returns:
- An instance of this class.
-
fromEntry
Converts a BPSEQ entry into an instance of this class.- Parameters:
entry
- A BPSEQ entry to convert.- Returns:
- An instance of this class.
-
index
@Parameter(order=1) public abstract int index()- Returns:
- The value of `index` column.
-
seq
@Parameter(order=2) public abstract char seq()- Returns:
- The value of `seq` column.
-
before
@Parameter(order=3) public abstract int before()- Returns:
- The value of `before` column.
-
after
@Parameter(order=4) public abstract int after()- Returns:
- The value of `after` column.
-
pair
@Parameter(order=5) public abstract int pair()- Returns:
- The value of `pair` column.
-
original
@Parameter(order=6) public abstract int original()- Returns:
- The value of `original` column.
-
comment
- Returns:
- An optional comment.
-
isPaired
public boolean isPaired()- Returns:
- True if `pair` column is non-zero.
-
hasInvalidBeforeOrAfter
public boolean hasInvalidBeforeOrAfter()- Returns:
- True if `before` or `after` column are not correct.
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Ct.ExtendedEntry>
-