Record Class ProjectionFactor
java.lang.Object
java.lang.Record
org.geysermc.databaseutils.processor.query.section.factor.ProjectionFactor
- All Implemented Interfaces:
Factor
public record ProjectionFactor(@Nullable ProjectionKeyword keyword, @Nullable String columnName)
extends Record
implements Factor
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionFactor(@Nullable ProjectionKeyword keyword, @Nullable String columnName) Creates an instance of aProjectionFactorrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable ProjectionKeywordkeyword()Returns the value of thekeywordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProjectionFactor
Creates an instance of aProjectionFactorrecord class.- Parameters:
keyword- the value for thekeywordrecord componentcolumnName- the value for thecolumnNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
keyword
Returns the value of thekeywordrecord component.- Returns:
- the value of the
keywordrecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-