Record Class WiringContainer
java.lang.Object
java.lang.Record
no.sikt.graphitron.generators.codeinterface.wiring.WiringContainer
-
Constructor Summary
ConstructorsConstructorDescriptionWiringContainer(String methodName, String schemaType, String schemaField) WiringContainer(String methodName, String schemaType, String schemaField, boolean isFetcher) Creates an instance of aWiringContainerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ClassWiringContainer>asClassWiring(List<WiringContainer> containers, ClassName className) asClassWiring(ClassName className) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisFetcherrecord component.Returns the value of themethodNamerecord component.Returns the value of theschemaFieldrecord component.Returns the value of theschemaTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WiringContainer
-
WiringContainer
Creates an instance of aWiringContainerrecord class.- Parameters:
methodName- the value for themethodNamerecord componentschemaType- the value for theschemaTyperecord componentschemaField- the value for theschemaFieldrecord componentisFetcher- the value for theisFetcherrecord component
-
-
Method Details
-
asClassWiring
-
asClassWiring
public static List<ClassWiringContainer> asClassWiring(List<WiringContainer> containers, ClassName className) -
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 '=='. -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
schemaType
Returns the value of theschemaTyperecord component.- Returns:
- the value of the
schemaTyperecord component
-
schemaField
Returns the value of theschemaFieldrecord component.- Returns:
- the value of the
schemaFieldrecord component
-
isFetcher
public boolean isFetcher()Returns the value of theisFetcherrecord component.- Returns:
- the value of the
isFetcherrecord component
-