Record Class CorrespondenceActionResource.RecipientPreviewBean

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.correspondence.impl.action.CorrespondenceActionResource.RecipientPreviewBean
Enclosing class:
CorrespondenceActionResource

public static record CorrespondenceActionResource.RecipientPreviewBean(CorrespondenceActionResource.SaveRequestBean saveBean, String sourceModel, List<String> sourceKeys, @Nullable String userKey, @Nullable String addressKey) extends Record
  • Constructor Details

    • RecipientPreviewBean

      public RecipientPreviewBean(CorrespondenceActionResource.SaveRequestBean saveBean, String sourceModel, List<String> sourceKeys, @Nullable @Nullable String userKey, @Nullable @Nullable String addressKey)
      Creates an instance of a RecipientPreviewBean record class.
      Parameters:
      saveBean - the value for the saveBean record component
      sourceModel - the value for the sourceModel record component
      sourceKeys - the value for the sourceKeys record component
      userKey - the value for the userKey record component
      addressKey - the value for the addressKey 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.
    • saveBean

      Returns the value of the saveBean record component.
      Returns:
      the value of the saveBean record component
    • sourceModel

      public String sourceModel()
      Returns the value of the sourceModel record component.
      Returns:
      the value of the sourceModel record component
    • sourceKeys

      public List<String> sourceKeys()
      Returns the value of the sourceKeys record component.
      Returns:
      the value of the sourceKeys record component
    • userKey

      @Nullable public @Nullable String userKey()
      Returns the value of the userKey record component.
      Returns:
      the value of the userKey record component
    • addressKey

      @Nullable public @Nullable String addressKey()
      Returns the value of the addressKey record component.
      Returns:
      the value of the addressKey record component