Package cn.boboweike.carrot.storage
Class CarrotMetadata
- java.lang.Object
-
- cn.boboweike.carrot.storage.CarrotMetadata
-
public class CarrotMetadata extends Object
-
-
Constructor Summary
Constructors Constructor Description CarrotMetadata(String name, String owner, Object value)CarrotMetadata(String name, String owner, String value)CarrotMetadata(String name, String owner, String value, Instant createdAt, Instant updatedAt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCreatedAt()StringgetId()StringgetName()StringgetOwner()InstantgetUpdatedAt()StringgetValue()LonggetValueAsLong()voidsetValue(String value)static StringtoId(String name, String owner)static StringtoId(String name, UUID owner)
-
-
-
Method Detail
-
getId
public String getId()
-
getOwner
public String getOwner()
-
getName
public String getName()
-
getValue
public String getValue()
-
getValueAsLong
public Long getValueAsLong()
-
setValue
public void setValue(String value)
-
getCreatedAt
public Instant getCreatedAt()
-
getUpdatedAt
public Instant getUpdatedAt()
-
-