java.lang.Object
java.lang.Record
org.praxislive.code.CodeChildFactoryService.Result
- Enclosing class:
CodeChildFactoryService
public static record CodeChildFactoryService.Result(CodeComponent<?> component, LogBuilder log)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(CodeComponent<?> component, LogBuilder log) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.log()Returns the value of thelogrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
component- the value for thecomponentrecord componentlog- the value for thelogrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-
log
Returns the value of thelogrecord component.- Returns:
- the value of the
logrecord component
-