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 aUpstreamDeletion
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontigIdentifier
record component.int
end()
Returns the value of theend
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisFiltered
record component.int
start()
Returns the value of thestart
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
UpstreamDeletion
Creates an instance of aUpstreamDeletion
record class.- Parameters:
contigIdentifier
- the value for thecontigIdentifier
record componentstart
- the value for thestart
record componentend
- the value for theend
record componentisFiltered
- the value for theisFiltered
record 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 thecontigIdentifier
record component.- Returns:
- the value of the
contigIdentifier
record component
-
start
public int start()Returns the value of thestart
record component.- Returns:
- the value of the
start
record component
-
end
public int end()Returns the value of theend
record component.- Returns:
- the value of the
end
record component
-
isFiltered
public boolean isFiltered()Returns the value of theisFiltered
record component.- Returns:
- the value of the
isFiltered
record component
-