Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.GetBrokerProducersResult
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.GetBrokerProducersResult
- Enclosing class:
- BrokerTypes
public static record BrokerTypes.GetBrokerProducersResult(List<BrokerTypes.BrokerProducer> producers, int total, int page, int limit, boolean hasMore)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetBrokerProducersResult(List<BrokerTypes.BrokerProducer> producers, int total, int page, int limit, boolean hasMore) Creates an instance of aGetBrokerProducersResultrecord 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.booleanhasMore()Returns the value of thehasMorerecord component.intlimit()Returns the value of thelimitrecord component.intpage()Returns the value of thepagerecord component.Returns the value of theproducersrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
GetBrokerProducersResult
public GetBrokerProducersResult(List<BrokerTypes.BrokerProducer> producers, int total, int page, int limit, boolean hasMore) Creates an instance of aGetBrokerProducersResultrecord class.- Parameters:
producers- the value for theproducersrecord 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 '=='. -
producers
Returns the value of theproducersrecord component.- Returns:
- the value of the
producersrecord 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
-