Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerDailyActivity
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerDailyActivity
- Enclosing class:
- BrokerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerDailyActivity(String date, int published, int consumed, int failed) Creates an instance of aBrokerDailyActivityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintconsumed()Returns the value of theconsumedrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thepublishedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrokerDailyActivity
Creates an instance of aBrokerDailyActivityrecord class.- Parameters:
date- the value for thedaterecord componentpublished- the value for thepublishedrecord componentconsumed- the value for theconsumedrecord componentfailed- the value for thefailedrecord 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 '=='. -
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
published
public int published()Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-
consumed
public int consumed()Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-