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) IntegergetKey()@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date@Size(min=3) StringinthashCode()booleanlenientEquals(Comment other) A lenient equality check ignoring server side fields.voidsetContent(String content) voidsetCreated(Date created) voidsetCreatedBy(String createdBy) voidvoidsetModified(Date modified) voidsetModifiedBy(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:
lenientEqualsin interfaceLenientEquals<Comment>- Parameters:
other- To compare against- Returns:
- true if...
-