public class Metadata extends Object implements Serializable, LenientEquals<Metadata>
Constructor and Description |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
@NotNull @Size(min=1) String |
getContent() |
@NotNull Date |
getCreated() |
@NotNull @Size(min=3) String |
getCreatedBy() |
@NotNull UUID |
getDatasetKey() |
@Min(value=1L) Integer |
getKey() |
@NotNull Date |
getModified() |
@NotNull @Size(min=3) String |
getModifiedBy() |
@NotNull MetadataType |
getType() |
int |
hashCode() |
boolean |
lenientEquals(Metadata other)
Does not include the key or server controlled values (created, createdBy etc).
|
void |
setContent(String content) |
void |
setCreated(Date created) |
void |
setCreatedBy(String createdBy) |
void |
setDatasetKey(UUID datasetKey) |
void |
setKey(Integer key) |
void |
setModified(Date modified) |
void |
setModifiedBy(String modifiedBy) |
void |
setType(MetadataType type) |
String |
toString() |
public Metadata()
@NotNull public @NotNull UUID getDatasetKey()
public void setDatasetKey(UUID datasetKey)
@NotNull public @NotNull MetadataType getType()
public void setType(MetadataType type)
@NotNull @Size(min=1) public @NotNull @Size(min=1) String getContent()
public void setContent(String content)
@NotNull @Size(min=3) public @NotNull @Size(min=3) String getCreatedBy()
public void setCreatedBy(String createdBy)
@NotNull @Size(min=3) public @NotNull @Size(min=3) String getModifiedBy()
public void setModifiedBy(String modifiedBy)
@NotNull public @NotNull Date getCreated()
public void setCreated(Date created)
@NotNull public @NotNull Date getModified()
public void setModified(Date modified)
public boolean lenientEquals(Metadata other)
lenientEquals
in interface LenientEquals<Metadata>
other
- To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.