@Immutable public class AuditField extends Object implements Serializable
AuditEvent. Has a mandatory name and an optional
value.| Constructor and Description |
|---|
AuditField(String sName,
String sValue)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static AuditField |
createWithHiddenValue(String sFieldName)
Factory method to create an
AuditField with a value that indicates,
that the real value is not to be persisted or displayed. |
boolean |
equals(Object o) |
String |
getName() |
String |
getValue() |
int |
hashCode() |
boolean |
hasName() |
boolean |
hasValue() |
String |
toString() |
public boolean hasName()
true if a name is present, false if not.public boolean hasValue()
true if a value is present, false if not.@Nonnull public static AuditField createWithHiddenValue(@Nullable String sFieldName)
AuditField with a value that indicates,
that the real value is not to be persisted or displayed.sFieldName - Field name. May be null.AuditField and never null.Copyright © 2014–2023 Philip Helger. All rights reserved.