Package io.camunda.search.clients.core
Record Class SearchGetResponse<T>
java.lang.Object
java.lang.Record
io.camunda.search.clients.core.SearchGetResponse<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchGetResponse(String id, String index, boolean found, T source) Creates an instance of aSearchGetResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfound()Returns the value of thefoundrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.index()Returns the value of theindexrecord component.static <T> SearchGetResponse<T> of(Function<SearchGetResponse.Builder<T>, io.camunda.util.ObjectBuilder<SearchGetResponse<T>>> fn) source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchGetResponse
Creates an instance of aSearchGetResponserecord class.- Parameters:
id- the value for theidrecord componentindex- the value for theindexrecord componentfound- the value for thefoundrecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
of
public static <T> SearchGetResponse<T> of(Function<SearchGetResponse.Builder<T>, io.camunda.util.ObjectBuilder<SearchGetResponse<T>>> fn) -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
found
public boolean found()Returns the value of thefoundrecord component.- Returns:
- the value of the
foundrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-