Record Class CompletionResponse
java.lang.Object
java.lang.Record
org.wildfly.extension.mcp.api.CompletionResponse
-
Constructor Summary
ConstructorsConstructorDescriptionCompletionResponse(List<String> values, Integer total, Boolean hasMore) Creates an instance of aCompletionResponserecord class. -
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.hasMore()Returns the value of thehasMorerecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
CompletionResponse
Creates an instance of aCompletionResponserecord class.- Parameters:
values- the value for thevaluesrecord componenttotal- the value for thetotalrecord componenthasMore- the value for thehasMorerecord component
-
-
Method Details
-
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). -
values
-
total
Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
hasMore
Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-