Package org.gbif.api.model.registry
Class Comment
- java.lang.Object
-
- org.gbif.api.model.registry.Comment
-
- All Implemented Interfaces:
Serializable,LenientEquals<Comment>
public class Comment extends Object implements Serializable, LenientEquals<Comment>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Comment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@NotNull @Size(min=1) StringgetContent()@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) DategetCreated()@Size(min=3) StringgetCreatedBy()@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) IntegergetKey()@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) DategetModified()@Size(min=3) StringgetModifiedBy()inthashCode()booleanlenientEquals(Comment other)A lenient equality check ignoring server side fields.voidsetContent(String content)voidsetCreated(Date created)voidsetCreatedBy(String createdBy)voidsetKey(Integer key)voidsetModified(Date modified)voidsetModifiedBy(String modifiedBy)StringtoString()
-
-
-
Constructor Detail
-
Comment
public Comment()
-
-
Method Detail
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer getKey()
-
getContent
@NotNull @Size(min=1) public @NotNull @Size(min=1) String getContent()
-
setContent
public void setContent(String content)
-
getCreatedBy
@Size(min=3) public @Size(min=3) String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getModifiedBy
@Size(min=3) public @Size(min=3) String getModifiedBy()
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
-
getCreated
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated()
-
setCreated
public void setCreated(Date created)
-
getModified
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getModified()
-
setModified
public void setModified(Date modified)
-
lenientEquals
public boolean lenientEquals(Comment other)
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...
-
-