Class AuditField

    • Constructor Detail

      • AuditField

        public AuditField​(@Nullable
                          String sName,
                          @Nullable
                          String sValue)
        Constructor
        Parameters:
        sName - The field name. May be null.
        sValue - The field value. May be null.
    • Method Detail

      • getName

        @Nullable
        public String getName()
        Returns:
        The name from the constructor. May be null.
      • hasName

        public boolean hasName()
        Returns:
        true if a name is present, false if not.
      • getValue

        @Nullable
        public String getValue()
        Returns:
        The value from the constructor. May be null.
      • hasValue

        public boolean hasValue()
        Returns:
        true if a value is present, false if not.
      • hashCode

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

        @Nonnull
        public static AuditField createWithHiddenValue​(@Nullable
                                                       String sFieldName)
        Factory method to create an AuditField with a value that indicates, that the real value is not to be persisted or displayed.
        Parameters:
        sFieldName - Field name. May be null.
        Returns:
        A new AuditField and never null.