Package org.ethelred.kiwiproc.processor
Record Class ToSqlArrayConversion
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.ToSqlArrayConversion
- All Implemented Interfaces:
Conversion
public record ToSqlArrayConversion(ContainerType ct, SqlArrayType sat, Conversion elementConversion)
extends Record
implements Conversion
-
Constructor Summary
ConstructorsConstructorDescriptionToSqlArrayConversion(ContainerType ct, SqlArrayType sat, Conversion elementConversion) Creates an instance of aToSqlArrayConversionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionct()Returns the value of thectrecord component.Returns the value of theelementConversionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanisValid()sat()Returns the value of thesatrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringwarning()
-
Constructor Details
-
ToSqlArrayConversion
Creates an instance of aToSqlArrayConversionrecord class.- Parameters:
ct- the value for thectrecord componentsat- the value for thesatrecord componentelementConversion- the value for theelementConversionrecord component
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceConversion
-
hasWarning
public boolean hasWarning()- Specified by:
hasWarningin interfaceConversion
-
warning
- Specified by:
warningin interfaceConversion
-
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). -
ct
Returns the value of thectrecord component.- Returns:
- the value of the
ctrecord component
-
sat
Returns the value of thesatrecord component.- Returns:
- the value of the
satrecord component
-
elementConversion
Returns the value of theelementConversionrecord component.- Returns:
- the value of the
elementConversionrecord component
-