Package org.dizitart.no2.common.meta
Class Attributes
java.lang.Object
org.dizitart.no2.common.meta.Attributes
- All Implemented Interfaces:
Serializable
Represents metadata attributes of a
NitriteMap.- Since:
- 1.0
- Author:
- Anindya Chatterjee
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Attributes.Attributes(String collection) Instantiates a new Attributes. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the value associated with a given key from aAttributes.inthashCode()booleanCheck whether a key exists in the attributes.Adds a key-value pair to the attributes and returns the updatedAttributesobject.voidsetAttributes(Map<String, String> attributes) toString()
-
Field Details
-
CREATED_TIME
The constant CREATED_TIME.- See Also:
-
LAST_MODIFIED_TIME
The constant LAST_MODIFIED_TIME.- See Also:
-
OWNER
The constant OWNER.- See Also:
-
UNIQUE_ID
The constant UNIQUE_ID.- See Also:
-
-
Constructor Details
-
Attributes
public Attributes()Instantiates a new Attributes. -
Attributes
Instantiates a new Attributes.- Parameters:
collection- the collection
-
-
Method Details
-
set
Adds a key-value pair to the attributes and returns the updatedAttributesobject.- Parameters:
key- The key is a string that represents the attribute name. It is used to identify the attribute in the attributes.value- The value parameter is a string that represents the value to be associated with the given key in the attributes.- Returns:
- The method is returning an instance of the Attributes class.
-
get
Retrieves the value associated with a given key from aAttributes.- Parameters:
key- The "key" parameter is a String that represents the key of the attribute that you want to retrieve from the attributes.- Returns:
- The method is returning the value associated with the given key in the attributes.
-
hasKey
Check whether a key exists in the attributes.- Parameters:
key- the key- Returns:
- the boolean
-
getAttributes
-
setAttributes
-
equals
-
hashCode
public int hashCode() -
toString
-