Record Class SQLResult.SQLColumn
java.lang.Object
java.lang.Record
org.jenkinsci.plugins.ibmisteps.model.SQLResult.SQLColumn
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SQLResult
public static record SQLResult.SQLColumn(String name, String typeName, int size, int scale)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.int
scale()
Returns the value of thescale
record component.int
size()
Returns the value of thesize
record component.final String
toString()
Returns a string representation of this record class.typeName()
Returns the value of thetypeName
record component.
-
Constructor Details
-
SQLColumn
Creates an instance of aSQLColumn
record class.- Parameters:
name
- the value for thename
record componenttypeName
- the value for thetypeName
record componentsize
- the value for thesize
record componentscale
- the value for thescale
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
typeName
Returns the value of thetypeName
record component.- Returns:
- the value of the
typeName
record component
-
size
public int size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
scale
public int scale()Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-