Record Class EmptyResultSet<T>
java.lang.Object
java.lang.Record
tools.refinery.store.query.resultset.EmptyResultSet<T>
- All Implemented Interfaces:
AnyResultSet, ResultSet<T>
public record EmptyResultSet<T>(ModelQueryAdapter adapter, Query<T> query)
extends Record
implements ResultSet<T>
-
Constructor Summary
ConstructorsConstructorDescriptionEmptyResultSet(ModelQueryAdapter adapter, Query<T> query) Creates an instance of aEmptyResultSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadapter()Returns the value of theadapterrecord component.voidaddListener(ResultSetListener<T> listener) final booleanIndicates whether some other object is "equal to" this one.getAll()final inthashCode()Returns a hash code value for this object.query()Returns the value of thequeryrecord component.voidremoveListener(ResultSetListener<T> listener) intsize()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmptyResultSet
Creates an instance of aEmptyResultSetrecord class.- Parameters:
adapter- the value for theadapterrecord componentquery- the value for thequeryrecord component
-
-
Method Details
-
getAdapter
- Specified by:
getAdapterin interfaceAnyResultSet
-
getCanonicalQuery
- Specified by:
getCanonicalQueryin interfaceAnyResultSet- Specified by:
getCanonicalQueryin interfaceResultSet<T>
-
get
-
getAll
-
size
public int size()- Specified by:
sizein interfaceAnyResultSet
-
addListener
- Specified by:
addListenerin interfaceResultSet<T>
-
removeListener
- Specified by:
removeListenerin interfaceResultSet<T>
-
toString
-
hashCode
-
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). -
adapter
Returns the value of theadapterrecord component.- Returns:
- the value of the
adapterrecord component
-
query
-