Record Class KafkaClusterResponse.TopicPartitionInput
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.TopicPartitionInput
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionTopicPartitionInput(String topic, int partition) Creates an instance of aTopicPartitionInputrecord 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.intReturns the value of thepartitionrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TopicPartitionInput
Creates an instance of aTopicPartitionInputrecord class.- Parameters:
topic- the value for thetopicrecord componentpartition- the value for thepartitionrecord 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. -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
partition
public int partition()Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-