Package org.deltafi.common.types
Record Class CollectConfiguration
java.lang.Object
java.lang.Record
org.deltafi.common.types.CollectConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionCollectConfiguration(Duration maxAge, Integer minNum, Integer maxNum, String metadataKey) Creates an instance of aCollectConfigurationrecord 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.maxAge()Returns the value of themaxAgerecord component.maxNum()Returns the value of themaxNumrecord component.Returns the value of themetadataKeyrecord component.minNum()Returns the value of theminNumrecord component.final StringtoString()Returns a string representation of this record class.validate()
-
Constructor Details
-
CollectConfiguration
Creates an instance of aCollectConfigurationrecord class.- Parameters:
maxAge- the value for themaxAgerecord componentminNum- the value for theminNumrecord componentmaxNum- the value for themaxNumrecord componentmetadataKey- the value for themetadataKeyrecord component
-
-
Method Details
-
validate
-
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). -
maxAge
Returns the value of themaxAgerecord component.- Returns:
- the value of the
maxAgerecord component
-
minNum
Returns the value of theminNumrecord component.- Returns:
- the value of the
minNumrecord component
-
maxNum
Returns the value of themaxNumrecord component.- Returns:
- the value of the
maxNumrecord component
-
metadataKey
Returns the value of themetadataKeyrecord component.- Returns:
- the value of the
metadataKeyrecord component
-