Record Class CodeSnapshot
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.debug.CodeSnapshot
Created by covers1624 on 5/12/26.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCodeSnapshot(long at, CodeSnapshot.Code ast, CodeSnapshot.Code java) Creates an instance of aCodeSnapshotrecord class.CodeSnapshot(CodeSnapshot.Code ast, CodeSnapshot.Code java) -
Method Summary
Modifier and TypeMethodDescriptionast()Returns the value of theastrecord component.longat()Returns the value of theatrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhasError()final inthashCode()Returns a hash code value for this object.booleanhasSameData(CodeSnapshot other) java()Returns the value of thejavarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CodeSnapshot
-
CodeSnapshot
Creates an instance of aCodeSnapshotrecord class.- Parameters:
at- the value for theatrecord componentast- the value for theastrecord componentjava- the value for thejavarecord component
-
-
Method Details
-
hasError
public boolean hasError() -
hasSameData
-
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 '=='. -
at
public long at()Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-
ast
Returns the value of theastrecord component.- Returns:
- the value of the
astrecord component
-
java
Returns the value of thejavarecord component.- Returns:
- the value of the
javarecord component
-