Record Class ElementCallbackQuery<ServiceT>
java.lang.Object
java.lang.Record
dev.getelements.elements.sdk.query.ElementCallbackQuery<ServiceT>
public record ElementCallbackQuery<ServiceT>(ElementServiceKey<? extends ServiceT> serviceKey, Supplier<? extends ServiceT> supplier, String methodName, List<Class<?>> parameters)
extends Record
implements Query<Callback<Object>>
Finds a
Callback from within a service type.-
Constructor Summary
ConstructorsConstructorDescriptionElementCallbackQuery(ElementServiceKey<? extends ServiceT> serviceKey, Supplier<? extends ServiceT> supplier, String methodName, List<Class<?>> parameters) Creates an instance of aElementCallbackQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.find()Gets the result of theQueryfinal inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.Returns the value of theparametersrecord component.ElementServiceKey<? extends ServiceT> Returns the value of theserviceKeyrecord component.supplier()Returns the value of thesupplierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementCallbackQuery
public ElementCallbackQuery(ElementServiceKey<? extends ServiceT> serviceKey, Supplier<? extends ServiceT> supplier, String methodName, List<Class<?>> parameters) Creates an instance of aElementCallbackQueryrecord class.- Parameters:
serviceKey- the value for theserviceKeyrecord componentsupplier- the value for thesupplierrecord componentmethodName- the value for themethodNamerecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
find
Description copied from interface:QueryGets the result of theQuery- Specified by:
findin interfaceQuery<ServiceT>- Returns:
- the query result
- Throws:
QueryException
-
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). -
serviceKey
Returns the value of theserviceKeyrecord component.- Returns:
- the value of the
serviceKeyrecord component
-
supplier
Returns the value of thesupplierrecord component.- Returns:
- the value of the
supplierrecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-