public class Identifier extends Object implements Serializable, LenientEquals<Identifier>
Constructor and Description |
---|
Identifier() |
Identifier(IdentifierType type,
String identifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date |
getCreated() |
@Size(min=3) String |
getCreatedBy() |
@NotNull @Size(min=1) String |
getIdentifier() |
String |
getIdentifierLink()
Creates a http link for an identifier if possible by passing it to some known resolvers for the specific id type.
|
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(value=1L) Integer |
getKey() |
@NotNull IdentifierType |
getType() |
int |
hashCode() |
boolean |
lenientEquals(Identifier other)
A lenient equality check ignoring server controlled values (createdBy, key etc).
|
void |
setCreated(Date created) |
void |
setCreatedBy(String createdBy) |
void |
setIdentifier(String identifier) |
void |
setKey(Integer key) |
void |
setType(IdentifierType type) |
String |
toString() |
public Identifier()
public Identifier(IdentifierType type, String identifier)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(value=1L) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Min(value=1L) Integer getKey()
@NotNull public @NotNull IdentifierType getType()
public void setType(IdentifierType type)
@NotNull @Size(min=1) public @NotNull @Size(min=1) String getIdentifier()
public void setIdentifier(String identifier)
@Size(min=3) public @Size(min=3) String getCreatedBy()
public void setCreatedBy(String createdBy)
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated()
public void setCreated(Date created)
@Nullable public String getIdentifierLink()
IdentifierUtils.getIdentifierLink(String, org.gbif.api.vocabulary.IdentifierType)
public boolean lenientEquals(Identifier other)
lenientEquals
in interface LenientEquals<Identifier>
other
- To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.