Record Class OutTopicEventPropertyLimiter.ShortenedProperty
java.lang.Object
java.lang.Record
org.odpi.openmetadata.frameworkservices.omf.outtopic.OutTopicEventPropertyLimiter.ShortenedProperty
- Record Components:
propertyName- name of the propertyestimatedSize- estimated size of the full value in bytesvaluesKept- number of values (array elements, map entries or characters) sent; zero if the property was left out
- Enclosing class:
OutTopicEventPropertyLimiter
public static record OutTopicEventPropertyLimiter.ShortenedProperty(String propertyName, long estimatedSize, int valuesKept)
extends Record
A property that has been shortened.
-
Constructor Summary
ConstructorsConstructorDescriptionShortenedProperty(String propertyName, long estimatedSize, int valuesKept) Creates an instance of aShortenedPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theestimatedSizerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertyNamerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevaluesKeptrecord component.
-
Constructor Details
-
ShortenedProperty
Creates an instance of aShortenedPropertyrecord class.- Parameters:
propertyName- the value for thepropertyNamerecord componentestimatedSize- the value for theestimatedSizerecord componentvaluesKept- the value for thevaluesKeptrecord 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 '=='. -
propertyName
Returns the value of thepropertyNamerecord component.- Returns:
- the value of the
propertyNamerecord component
-
estimatedSize
public long estimatedSize()Returns the value of theestimatedSizerecord component.- Returns:
- the value of the
estimatedSizerecord component
-
valuesKept
public int valuesKept()Returns the value of thevaluesKeptrecord component.- Returns:
- the value of the
valuesKeptrecord component
-