Record Class JoinAddressCounts
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.JoinAddressCounts
- All Implemented Interfaces:
DateHolder
public record JoinAddressCounts(long date, List<JoinAddressCount> joinAddresses)
extends Record
implements DateHolder
Represents a count of join addresses on a specific date.
-
Constructor Summary
ConstructorsConstructorDescriptionJoinAddressCounts(long date, List<JoinAddressCount> joinAddresses) Creates an instance of aJoinAddressCountsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejoinAddressesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JoinAddressCounts
Creates an instance of aJoinAddressCountsrecord class.- Parameters:
date- the value for thedaterecord componentjoinAddresses- the value for thejoinAddressesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
date
public long date()Returns the value of thedaterecord component.- Specified by:
datein interfaceDateHolder- Returns:
- the value of the
daterecord component
-
joinAddresses
Returns the value of thejoinAddressesrecord component.- Returns:
- the value of the
joinAddressesrecord component
-