Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.GetBrokerConsumersResult
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.GetBrokerConsumersResult
- Enclosing class:
- BrokerTypes
public static record BrokerTypes.GetBrokerConsumersResult(List<BrokerTypes.BrokerConsumer> consumers, int total, int page, int limit, boolean hasMore)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetBrokerConsumersResult(List<BrokerTypes.BrokerConsumer> consumers, int total, int page, int limit, boolean hasMore) Creates an instance of aGetBrokerConsumersResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasMore()Returns the value of thehasMorerecord component.intlimit()Returns the value of thelimitrecord component.intpage()Returns the value of thepagerecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
GetBrokerConsumersResult
public GetBrokerConsumersResult(List<BrokerTypes.BrokerConsumer> consumers, int total, int page, int limit, boolean hasMore) Creates an instance of aGetBrokerConsumersResultrecord class.- Parameters:
consumers- the value for theconsumersrecord componenttotal- the value for thetotalrecord componentpage- the value for thepagerecord componentlimit- the value for thelimitrecord componenthasMore- the value for thehasMorerecord component
-
-
Method Details
-
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 '=='. -
consumers
Returns the value of theconsumersrecord component.- Returns:
- the value of the
consumersrecord component
-
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-