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) IntegergetKey()@NotNull @Size(min=1) StringgetValue()inthashCode()booleanlenientEquals(Tag other) A lenient test that returns true if they are the same object or have the same value.voidsetCreated(Date created) voidsetCreatedBy(String createdBy) voidvoidtoString()
-
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:
lenientEqualsin interfaceLenientEquals<Tag>- Parameters:
other- To compare against- Returns:
- true if...
-