Record Class ProjectionSection
java.lang.Object
java.lang.Record
org.geysermc.databaseutils.processor.query.section.ProjectionSection
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionSection(@NonNull List<@NonNull ProjectionFactor> projections) Creates an instance of aProjectionSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandistinct()final booleanIndicates whether some other object is "equal to" this one.booleanfirst()static ProjectionSectionfinal inthashCode()Returns a hash code value for this object.intlimit()@NonNull List<@NonNull ProjectionKeyword>Returns all the projection keywords that are not:DistinctProjectionKeywordProjectionFactor with a non-null columnName. Those specific keywords can be gathered by their respective methods:distinct()columnName()List<@NonNull ProjectionFactor>Returns the value of theprojectionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProjectionSection
Creates an instance of aProjectionSectionrecord class.- Parameters:
projections- the value for theprojectionsrecord component
-
-
Method Details
-
from
-
columnName
-
distinct
public boolean distinct() -
first
public boolean first() -
limit
public int limit() -
nonSpecialProjectionKeywords
Returns all the projection keywords that are not:DistinctProjectionKeyword- ProjectionFactor with a non-null columnName.
-
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). -
projections
Returns the value of theprojectionsrecord component.- Returns:
- the value of the
projectionsrecord component
-