Record Class RegistryHistoryConfigurationHolder

java.lang.Object
java.lang.Record
net.croz.nrich.registry.core.model.RegistryHistoryConfigurationHolder

public record RegistryHistoryConfigurationHolder(PropertyWithType revisionNumberProperty, PropertyWithType revisionTimestampProperty, PropertyWithType revisionTypeProperty, List<PropertyWithType> revisionAdditionalPropertyList, List<String> propertyDisplayList) extends Record
  • Constructor Details

    • RegistryHistoryConfigurationHolder

      public RegistryHistoryConfigurationHolder(PropertyWithType revisionNumberProperty, PropertyWithType revisionTimestampProperty, PropertyWithType revisionTypeProperty, List<PropertyWithType> revisionAdditionalPropertyList, List<String> propertyDisplayList)
      Creates an instance of a RegistryHistoryConfigurationHolder record class.
      Parameters:
      revisionNumberProperty - the value for the revisionNumberProperty record component
      revisionTimestampProperty - the value for the revisionTimestampProperty record component
      revisionTypeProperty - the value for the revisionTypeProperty record component
      revisionAdditionalPropertyList - the value for the revisionAdditionalPropertyList record component
      propertyDisplayList - the value for the propertyDisplayList record component
  • Method Details

    • 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.
    • revisionNumberProperty

      public PropertyWithType revisionNumberProperty()
      Returns the value of the revisionNumberProperty record component.
      Returns:
      the value of the revisionNumberProperty record component
    • revisionTimestampProperty

      public PropertyWithType revisionTimestampProperty()
      Returns the value of the revisionTimestampProperty record component.
      Returns:
      the value of the revisionTimestampProperty record component
    • revisionTypeProperty

      public PropertyWithType revisionTypeProperty()
      Returns the value of the revisionTypeProperty record component.
      Returns:
      the value of the revisionTypeProperty record component
    • revisionAdditionalPropertyList

      public List<PropertyWithType> revisionAdditionalPropertyList()
      Returns the value of the revisionAdditionalPropertyList record component.
      Returns:
      the value of the revisionAdditionalPropertyList record component
    • propertyDisplayList

      public List<String> propertyDisplayList()
      Returns the value of the propertyDisplayList record component.
      Returns:
      the value of the propertyDisplayList record component