Package cs1302.tracer.trace
Record Class TraceValue.Color
java.lang.Object
java.lang.Record
cs1302.tracer.trace.TraceValue.Color
- Record Components:
classFqn- The fully qualified class name.hex- The hexadecimal color string.
- All Implemented Interfaces:
TraceValue
- Enclosing interface:
TraceValue
public static record TraceValue.Color(String classFqn, String hex)
extends Record
implements TraceValue
Represents a Color object trace value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface cs1302.tracer.trace.TraceValue
TraceValue.Collection, TraceValue.Color, TraceValue.Lambda, TraceValue.List, TraceValue.Map, TraceValue.Null, TraceValue.Object, TraceValue.Primitive, TraceValue.Reference, TraceValue.String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclassFqn()Returns the value of theclassFqnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hex()Returns the value of thehexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
classFqn
Returns the value of theclassFqnrecord component.- Returns:
- the value of the
classFqnrecord component
-
hex
Returns the value of thehexrecord component.- Returns:
- the value of the
hexrecord component
-