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 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()
-
-
-
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:
lenientEquals
in interfaceLenientEquals<Comment>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-