Record Class ClassWiringContainer
java.lang.Object
java.lang.Record
no.sikt.graphitron.generators.codeinterface.wiring.ClassWiringContainer
public record ClassWiringContainer(WiringContainer wiring, no.sikt.graphitron.javapoet.ClassName containerClass)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClassWiringContainer(WiringContainer wiring, no.sikt.graphitron.javapoet.ClassName containerClass) Creates an instance of aClassWiringContainerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionno.sikt.graphitron.javapoet.ClassNameReturns the value of thecontainerClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.no.sikt.graphitron.javapoet.CodeBlocktoCode()final StringtoString()Returns a string representation of this record class.wiring()Returns the value of thewiringrecord component.
-
Constructor Details
-
ClassWiringContainer
public ClassWiringContainer(WiringContainer wiring, no.sikt.graphitron.javapoet.ClassName containerClass) Creates an instance of aClassWiringContainerrecord class.- Parameters:
wiring- the value for thewiringrecord componentcontainerClass- the value for thecontainerClassrecord component
-
-
Method Details
-
toCode
public no.sikt.graphitron.javapoet.CodeBlock toCode() -
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). -
wiring
Returns the value of thewiringrecord component.- Returns:
- the value of the
wiringrecord component
-
containerClass
public no.sikt.graphitron.javapoet.ClassName containerClass()Returns the value of thecontainerClassrecord component.- Returns:
- the value of the
containerClassrecord component
-