Record Class CreateDunningRunPersistTask.DunningRunBean

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.debitor.api.action.CreateDunningRunPersistTask.DunningRunBean
Enclosing class:
CreateDunningRunPersistTask

public static record CreateDunningRunPersistTask.DunningRunBean(Iterable<CreateDunningRunPersistTask.DebitorAddressChange> openDebitors, Iterable<Entity> openNonMaxedDebitors, org.joda.time.DateTime dunningDate, org.joda.time.LocalDate paymentDeadline, Optional<org.joda.time.LocalDate> fromDateOverride, String maturityDateCalculationType) extends Record
  • Constructor Details

    • DunningRunBean

      public DunningRunBean(Iterable<CreateDunningRunPersistTask.DebitorAddressChange> openDebitors, Iterable<Entity> openNonMaxedDebitors, org.joda.time.DateTime dunningDate, org.joda.time.LocalDate paymentDeadline, Optional<org.joda.time.LocalDate> fromDateOverride, String maturityDateCalculationType)
      Creates an instance of a DunningRunBean record class.
      Parameters:
      openDebitors - the value for the openDebitors record component
      openNonMaxedDebitors - the value for the openNonMaxedDebitors record component
      dunningDate - the value for the dunningDate record component
      paymentDeadline - the value for the paymentDeadline record component
      fromDateOverride - the value for the fromDateOverride record component
      maturityDateCalculationType - the value for the maturityDateCalculationType 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.
    • openDebitors

      Returns the value of the openDebitors record component.
      Returns:
      the value of the openDebitors record component
    • openNonMaxedDebitors

      public Iterable<Entity> openNonMaxedDebitors()
      Returns the value of the openNonMaxedDebitors record component.
      Returns:
      the value of the openNonMaxedDebitors record component
    • dunningDate

      public org.joda.time.DateTime dunningDate()
      Returns the value of the dunningDate record component.
      Returns:
      the value of the dunningDate record component
    • paymentDeadline

      public org.joda.time.LocalDate paymentDeadline()
      Returns the value of the paymentDeadline record component.
      Returns:
      the value of the paymentDeadline record component
    • fromDateOverride

      public Optional<org.joda.time.LocalDate> fromDateOverride()
      Returns the value of the fromDateOverride record component.
      Returns:
      the value of the fromDateOverride record component
    • maturityDateCalculationType

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