Package org.gbif.api.model.registry
Class Tag
- java.lang.Object
-
- org.gbif.api.model.registry.Tag
-
- All Implemented Interfaces:
Serializable
,LenientEquals<Tag>
public class Tag extends Object implements Serializable, LenientEquals<Tag>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
getCreated()
@Size(min=3) String
getCreatedBy()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) Integer
getKey()
@NotNull @Size(min=1) String
getValue()
int
hashCode()
boolean
lenientEquals(Tag other)
A lenient test that returns true if they are the same object or have the same value.void
setCreated(Date created)
void
setCreatedBy(String createdBy)
void
setKey(Integer key)
void
setValue(String value)
String
toString()
-
-
-
Method Detail
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) Integer getKey()
-
getCreatedBy
@Size(min=3) public @Size(min=3) String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
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)
-
lenientEquals
public boolean lenientEquals(Tag other)
A lenient test that returns true if they are the same object or have the same value.- Specified by:
lenientEquals
in interfaceLenientEquals<Tag>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-