public class MachineTag extends Object implements LenientEquals<MachineTag>, Serializable
created
and createdBy
are automatically set upon
persisting.Constructor and Description |
---|
MachineTag() |
MachineTag(String namespace,
String name,
String value)
This is the default constructor to create new Machine Tags which takes all user settable properties.
|
MachineTag(TagName tagName,
String value)
This is the other constructor to create new Machine Tags which takes all user settable properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date |
getCreated() |
@Size(min=3) String |
getCreatedBy() |
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer |
getKey() |
@NotNull @Size(min=1,max=255) String |
getName() |
@NotNull @Size(min=1,max=255) String |
getNamespace() |
@NotNull @Size(min=1,max=700) String |
getValue() |
int |
hashCode() |
boolean |
lenientEquals(MachineTag other)
This implementation of the
equals(Object) method does only check business equality and disregards
automatically set and maintained fields like createdBy, key and possibly others in the future. |
static MachineTag |
newInstance(String namespace,
String name,
String value) |
static MachineTag |
newInstance(TagName tagName,
String value) |
void |
setCreated(Date created) |
void |
setCreatedBy(String createdBy) |
void |
setKey(Integer key) |
void |
setName(String name) |
void |
setNamespace(String namespace) |
void |
setValue(String value) |
String |
toString() |
public MachineTag()
public MachineTag(String namespace, String name, String value)
public MachineTag(TagName tagName, String value)
public static MachineTag newInstance(String namespace, String name, String value)
public static MachineTag newInstance(TagName tagName, String value)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer getKey()
@NotNull @Size(min=1, max=255) public @NotNull @Size(min=1,max=255) String getNamespace()
public void setNamespace(String namespace)
@Size(min=3) public @Size(min=3) String getCreatedBy()
public void setCreatedBy(String createdBy)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated()
public void setCreated(Date created)
public boolean lenientEquals(MachineTag other)
equals(Object)
method does only check business equality and disregards
automatically set and maintained fields like createdBy, key
and possibly others in the future.lenientEquals
in interface LenientEquals<MachineTag>
other
- To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.