Package org.gbif.api.model.registry
Class Tag
java.lang.Object
org.gbif.api.model.registry.Tag
- All Implemented Interfaces:
Serializable
,LenientEquals<Tag>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
@Size(min=3) String
@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
void
toString()
-
Constructor Details
-
Tag
public Tag() -
Tag
-
Tag
-
-
Method Details
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(1L) Integer getKey() -
setKey
-
getValue
-
setValue
-
getCreatedBy
-
setCreatedBy
-
getCreated
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated() -
setCreated
-
equals
-
hashCode
-
toString
-
lenientEquals
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...
-