Record Class KafkaClusterResponse.TopicDetail
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.TopicDetail
- Enclosing class:
KafkaClusterResponse
@Introspected
public static record KafkaClusterResponse.TopicDetail(KafkaClusterResponse.TopicSummary topic, List<KafkaClusterResponse.PartitionDetail> partitions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTopicDetail(KafkaClusterResponse.TopicSummary topic, List<KafkaClusterResponse.PartitionDetail> partitions) Creates an instance of aTopicDetailrecord 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.Returns the value of thepartitionsrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TopicDetail
public TopicDetail(KafkaClusterResponse.TopicSummary topic, List<KafkaClusterResponse.PartitionDetail> partitions) Creates an instance of aTopicDetailrecord class.- Parameters:
topic- the value for thetopicrecord componentpartitions- the value for thepartitionsrecord 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. 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
-
partitions
Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-