Package op
Record Class VCFProcessor.UpstreamDeletion
java.lang.Object
java.lang.Record
op.VCFProcessor.UpstreamDeletion
- Record Components:
contigIdentifier- The unique identifier of the contig where the deletion occurs.start- The start position of the deletion.end- The end position of the deletion.isFiltered- A boolean flag indicating whether the deletion is filtered.
- Enclosing class:
VCFProcessor
public static record VCFProcessor.UpstreamDeletion(String contigIdentifier, int start, int end, boolean isFiltered)
extends Record
Represents an upstream deletion affecting a sample.
This record encapsulates the details of an upstream deletion, including:
- The contig identifier where the deletion occurs.
- The start position of the deletion.
- The end position of the deletion.
- A flag indicating whether the deletion is filtered.
-
Constructor Summary
ConstructorsConstructorDescriptionUpstreamDeletion(String contigIdentifier, int start, int end, boolean isFiltered) Creates an instance of aUpstreamDeletionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontigIdentifierrecord component.intend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisFilteredrecord component.intstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpstreamDeletion
Creates an instance of aUpstreamDeletionrecord class.- Parameters:
contigIdentifier- the value for thecontigIdentifierrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componentisFiltered- the value for theisFilteredrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
contigIdentifier
Returns the value of thecontigIdentifierrecord component.- Returns:
- the value of the
contigIdentifierrecord component
-
start
public int start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public int end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
isFiltered
public boolean isFiltered()Returns the value of theisFilteredrecord component.- Returns:
- the value of the
isFilteredrecord component
-