Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.GetBrokerEventsResult
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.GetBrokerEventsResult
- Enclosing class:
- BrokerTypes
public static record BrokerTypes.GetBrokerEventsResult(List<BrokerTypes.BrokerEvent> events, int total, int page, int limit, boolean hasMore)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetBrokerEventsResult(List<BrokerTypes.BrokerEvent> events, int total, int page, int limit, boolean hasMore) Creates an instance of aGetBrokerEventsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.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
-
GetBrokerEventsResult
public GetBrokerEventsResult(List<BrokerTypes.BrokerEvent> events, int total, int page, int limit, boolean hasMore) Creates an instance of aGetBrokerEventsResultrecord class.- Parameters:
events- the value for theeventsrecord 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 '=='. -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord 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
-