Record Class ProjectionSource<L extends Label>
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.variation.diff.ProjectionSource<L>
- All Implemented Interfaces:
VariationTreeSource
public record ProjectionSource<L extends Label>(VariationDiff<L extends Label> origin, Time time)
extends Record
implements VariationTreeSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate final VariationDiff<L>
The field for theorigin
record component.private final Time
The field for thetime
record component.Fields inherited from interface org.variantsync.diffdetective.variation.tree.source.VariationTreeSource
Unknown
-
Constructor Summary
ConstructorDescriptionProjectionSource
(VariationDiff<L> origin, Time time) Creates an instance of aProjectionSource
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.origin()
Returns the value of theorigin
record component.time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
origin
The field for theorigin
record component. -
time
The field for thetime
record component.
-
-
Constructor Details
-
ProjectionSource
Creates an instance of aProjectionSource
record class.- Parameters:
origin
- the value for theorigin
record componenttime
- the value for thetime
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.- Specified by:
toString
in interfaceVariationTreeSource
- Specified by:
toString
in classRecord
- Returns:
- a string representation of this object
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
origin
Returns the value of theorigin
record component.- Returns:
- the value of the
origin
record component
-
time
Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-