Class SpinDefaultConstructorFinalFieldsDto

java.lang.Object
org.cibseven.bpm.springboot.project.qa.spin.SpinDefaultConstructorFinalFieldsDto

public final class SpinDefaultConstructorFinalFieldsDto extends Object
What Kotlin compiles for a data class whose properties all have default values: final fields, getters, a constructor that takes all properties and checks them for null, and a constructor without parameters that uses the defaults. Spin reads it through the constructor without parameters and sets the final fields, as with Jackson 2, so properties missing in the JSON keep their default values.
  • Constructor Details

    • SpinDefaultConstructorFinalFieldsDto

      public SpinDefaultConstructorFinalFieldsDto()
    • SpinDefaultConstructorFinalFieldsDto

      public SpinDefaultConstructorFinalFieldsDto(String name, int amount, List<String> tags)
  • Method Details

    • getName

      public String getName()
    • getAmount

      public int getAmount()
    • getTags

      public List<String> getTags()