public class Tag extends Object implements Serializable, LenientEquals<Tag>
Constructor and Description |
---|
Tag() |
Tag(String value) |
Tag(String value,
String createdBy) |
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) @Min(value=1L) Integer |
getKey() |
@NotNull @Size(min=1) String |
getValue() |
int |
hashCode() |
boolean |
lenientEquals(Tag other)
A lenient test that returns true if they are the same object or have the same value.
|
void |
setCreated(Date created) |
void |
setCreatedBy(String createdBy) |
void |
setKey(Integer key) |
void |
setValue(String value) |
String |
toString() |
public Tag()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(value=1L) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(value=1L) Integer getKey()
@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(Tag other)
lenientEquals
in interface LenientEquals<Tag>
other
- To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.