Package ru.slie.luna.db
Record Class SearchResultEmpty<T>
java.lang.Object
java.lang.Record
ru.slie.luna.db.SearchResultEmpty<T>
- All Implemented Interfaces:
Iterator<T>,SearchResult<T>
public record SearchResultEmpty<T>(SearchParams searchParams)
extends Record
implements SearchResult<T>
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResultEmpty(SearchParams searchParams) Creates an instance of aSearchResultEmptyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgetLimit()intgetPage()longgetTotal()final inthashCode()Returns a hash code value for this object.booleanhasNext()next()Returns the value of thesearchParamsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
SearchResultEmpty
Creates an instance of aSearchResultEmptyrecord class.- Parameters:
searchParams- the value for thesearchParamsrecord component
-
-
Method Details
-
getTotal
public long getTotal()- Specified by:
getTotalin interfaceSearchResult<T>
-
getResults
- Specified by:
getResultsin interfaceSearchResult<T>
-
next
-
hasNext
public boolean hasNext() -
getPage
public int getPage()- Specified by:
getPagein interfaceSearchResult<T>
-
getLimit
public int getLimit()- Specified by:
getLimitin interfaceSearchResult<T>
-
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). -
searchParams
Returns the value of thesearchParamsrecord component.- Specified by:
searchParamsin interfaceSearchResult<T>- Returns:
- the value of the
searchParamsrecord component
-