Package org.gbif.api.model.registry
Class Comment
java.lang.Object
org.gbif.api.model.registry.Comment
- All Implemented Interfaces:
Serializable
,LenientEquals<Comment>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull @Size(min=1) String
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
@Size(min=3) String
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer
getKey()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
@Size(min=3) String
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
void
setModified
(Date modified) void
setModifiedBy
(String modifiedBy) toString()
-
Constructor Details
-
Comment
public Comment()
-
-
Method Details
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer getKey() -
setKey
-
getContent
-
setContent
-
getCreatedBy
-
setCreatedBy
-
getModifiedBy
-
setModifiedBy
-
getCreated
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated() -
setCreated
-
getModified
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getModified() -
setModified
-
equals
-
hashCode
-
toString
-
lenientEquals
A lenient equality check ignoring server side fields. If the objects are equal or have the same content, they are considered the same.- Specified by:
lenientEquals
in interfaceLenientEquals<Comment>
- Parameters:
other
- To compare against- Returns:
- true if...
-