Package org.ethelred.kiwiproc.processor
Record Class FromSqlArrayConversion
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.FromSqlArrayConversion
- All Implemented Interfaces:
Conversion
public record FromSqlArrayConversion(SqlArrayType sat, ContainerType ct, Conversion elementConversion)
extends Record
implements Conversion
-
Constructor Summary
ConstructorsConstructorDescriptionFromSqlArrayConversion(SqlArrayType sat, ContainerType ct, Conversion elementConversion) Creates an instance of aFromSqlArrayConversionrecord 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
-
FromSqlArrayConversion
Creates an instance of aFromSqlArrayConversionrecord class.- Parameters:
sat- the value for thesatrecord componentct- the value for thectrecord 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). -
sat
Returns the value of thesatrecord component.- Returns:
- the value of the
satrecord component
-
ct
Returns the value of thectrecord component.- Returns:
- the value of the
ctrecord component
-
elementConversion
Returns the value of theelementConversionrecord component.- Returns:
- the value of the
elementConversionrecord component
-