Class Consent

    • Field Detail

      • value

        @Nullable
        private String value
        Consent value.
      • approved

        @Nullable
        private boolean approved
        Whether consent is approved.
    • Constructor Detail

      • Consent

        public Consent()
    • Method Detail

      • getValue

        @Nullable
        public String getValue()
        Get the consent value.
        Returns:
        the consent value
      • isApproved

        @Nullable
        public boolean isApproved()
        Whether consent is approved or denied.
        Returns:
        true if consent is approved
      • setValue

        public void setValue​(@Nonnull @NotEmpty
                             String val)
        Set the consent value.
        Parameters:
        val - the consent value
      • setApproved

        public void setApproved​(boolean flag)
        Set whether consent is approved.
        Parameters:
        flag - true if consent is approved
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object