java.lang.Object
com.liferay.headless.commerce.admin.site.setting.dto.v1_0.MeasurementUnit
All Implemented Interfaces:
Serializable

@Generated("") public class MeasurementUnit extends Object implements Serializable
See Also:
Generated:
  • Field Details

    • companyId

      protected Long companyId
    • externalReferenceCode

      protected String externalReferenceCode
    • id

      protected Long id
    • key

      @NotEmpty protected @NotEmpty String key
    • name

      @NotNull protected @NotNull Map<String,String> name
    • primary

      protected Boolean primary
    • priority

      protected Double priority
    • rate

      protected Double rate
    • type

      @NotEmpty protected @NotEmpty String type
    • xClassName

      public String xClassName
  • Constructor Details

    • MeasurementUnit

      public MeasurementUnit()
  • Method Details

    • toDTO

      public static MeasurementUnit toDTO(String json)
    • unsafeToDTO

      public static MeasurementUnit unsafeToDTO(String json)
    • getCompanyId

      @DecimalMin("0") public @DecimalMin("0") Long getCompanyId()
    • setCompanyId

      public void setCompanyId(Long companyId)
    • setCompanyId

      public void setCompanyId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> companyIdUnsafeSupplier)
    • getExternalReferenceCode

      public String getExternalReferenceCode()
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
    • setExternalReferenceCode

      public void setExternalReferenceCode(com.liferay.petra.function.UnsafeSupplier<String,Exception> externalReferenceCodeUnsafeSupplier)
    • getId

      @DecimalMin("0") public @DecimalMin("0") Long getId()
    • setId

      public void setId(Long id)
    • setId

      public void setId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> idUnsafeSupplier)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • setKey

      public void setKey(com.liferay.petra.function.UnsafeSupplier<String,Exception> keyUnsafeSupplier)
    • getName

      @Valid public @Valid Map<String,String> getName()
    • setName

      public void setName(Map<String,String> name)
    • setName

      public void setName(com.liferay.petra.function.UnsafeSupplier<Map<String,String>,Exception> nameUnsafeSupplier)
    • getPrimary

      public Boolean getPrimary()
    • setPrimary

      public void setPrimary(Boolean primary)
    • setPrimary

      public void setPrimary(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> primaryUnsafeSupplier)
    • getPriority

      @DecimalMin("0") public @DecimalMin("0") Double getPriority()
    • setPriority

      public void setPriority(Double priority)
    • setPriority

      public void setPriority(com.liferay.petra.function.UnsafeSupplier<Double,Exception> priorityUnsafeSupplier)
    • getRate

      @DecimalMin("0") public @DecimalMin("0") Double getRate()
    • setRate

      public void setRate(Double rate)
    • setRate

      public void setRate(com.liferay.petra.function.UnsafeSupplier<Double,Exception> rateUnsafeSupplier)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • setType

      public void setType(com.liferay.petra.function.UnsafeSupplier<String,Exception> typeUnsafeSupplier)
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object