Record Class InactiveTopicWithOwner
java.lang.Object
java.lang.Record
pl.allegro.tech.hermes.management.domain.detection.InactiveTopicWithOwner
public record InactiveTopicWithOwner(InactiveTopic topic, pl.allegro.tech.hermes.api.OwnerId ownerId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInactiveTopicWithOwner(InactiveTopic topic, pl.allegro.tech.hermes.api.OwnerId ownerId) Creates an instance of aInactiveTopicWithOwnerrecord 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.pl.allegro.tech.hermes.api.OwnerIdownerId()Returns the value of theownerIdrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InactiveTopicWithOwner
Creates an instance of aInactiveTopicWithOwnerrecord class.- Parameters:
topic- the value for thetopicrecord componentownerId- the value for theownerIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
ownerId
public pl.allegro.tech.hermes.api.OwnerId ownerId()Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-