Package com.io7m.cardant.model
Record Class CATypeDeclarationSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CATypeDeclarationSearchParameters
- Record Components:
search- The search querypageSize- The page size
- All Implemented Interfaces:
CASearchParametersType
public record CATypeDeclarationSearchParameters(Optional<String> search, long pageSize)
extends Record
implements CASearchParametersType
The immutable parameters required to search declared types.
-
Constructor Summary
ConstructorsConstructorDescriptionCATypeDeclarationSearchParameters(Optional<String> search, long pageSize) The immutable parameters required to search declared types. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longpageSize()Returns the value of thepageSizerecord component.search()Returns the value of thesearchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CATypeDeclarationSearchParameters
The immutable parameters required to search declared types.- Parameters:
search- The search querypageSize- The page size
-
-
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 '=='. -
search
Returns the value of thesearchrecord component.- Returns:
- the value of the
searchrecord component
-
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Specified by:
pageSizein interfaceCASearchParametersType- Returns:
- the value of the
pageSizerecord component
-