public class Comment extends Object implements Serializable, LenientEquals<Comment>
Constructor and Description |
---|
Comment() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
@NotNull @Size(min=1) String |
getContent() |
@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() |
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date |
getModified() |
@Size(min=3) String |
getModifiedBy() |
int |
hashCode() |
boolean |
lenientEquals(Comment other)
A lenient equality check ignoring server side fields.
|
void |
setContent(String content) |
void |
setCreated(Date created) |
void |
setCreatedBy(String createdBy) |
void |
setKey(Integer key) |
void |
setModified(Date modified) |
void |
setModifiedBy(String modifiedBy) |
String |
toString() |
public Comment()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer getKey()
@NotNull @Size(min=1) public @NotNull @Size(min=1) String getContent()
public void setContent(String content)
@Size(min=3) public @Size(min=3) String getCreatedBy()
public void setCreatedBy(String createdBy)
@Size(min=3) public @Size(min=3) String getModifiedBy()
public void setModifiedBy(String modifiedBy)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated()
public void setCreated(Date created)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getModified()
public void setModified(Date modified)
public boolean lenientEquals(Comment other)
lenientEquals
in interface LenientEquals<Comment>
other
- To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.