Record Class CollectConfiguration

java.lang.Object
java.lang.Record
org.deltafi.common.types.CollectConfiguration

public record CollectConfiguration(Duration maxAge, Integer minNum, Integer maxNum, String metadataKey) extends Record
  • Constructor Details

    • CollectConfiguration

      public CollectConfiguration(Duration maxAge, Integer minNum, Integer maxNum, String metadataKey)
      Creates an instance of a CollectConfiguration record class.
      Parameters:
      maxAge - the value for the maxAge record component
      minNum - the value for the minNum record component
      maxNum - the value for the maxNum record component
      metadataKey - the value for the metadataKey record component
  • Method Details

    • validate

      public List<String> validate()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • maxAge

      public Duration maxAge()
      Returns the value of the maxAge record component.
      Returns:
      the value of the maxAge record component
    • minNum

      public Integer minNum()
      Returns the value of the minNum record component.
      Returns:
      the value of the minNum record component
    • maxNum

      public Integer maxNum()
      Returns the value of the maxNum record component.
      Returns:
      the value of the maxNum record component
    • metadataKey

      public String metadataKey()
      Returns the value of the metadataKey record component.
      Returns:
      the value of the metadataKey record component