Package com.landawn.abacus.util
Class MapEntity
java.lang.Object
com.landawn.abacus.util.MapEntity
- All Implemented Interfaces:
Serializable
This object is used to store the properties' values of an object. So it should not set or get value for other
object's property.
- Since:
- 0.8
- Author:
- Haiyang Li
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MapEntity.MapEntityBuilder
boolean
containsKey
(String propName) copy()
entrySet()
boolean
<T> T
<T> T
Node: To follow one of general design rules inAbacus
, if there is a conversion behind when the source value is not assignable to the target type, put thetargetType
to last parameter of the method.int
hashCode()
boolean
isEmpty()
Checks if is empty.keySet()
Returns the property names which have been set value.props()
void
removeAll
(Collection<String> propNames) Removes the all.void
int
size()
toString()
static MapEntity
static MapEntity
-
Constructor Details
-
MapEntity
- Parameters:
entityName
-
-
MapEntity
- Parameters:
entityName
-props
-
-
-
Method Details
-
valueOf
- Parameters:
entityName
-- Returns:
-
valueOf
- Parameters:
entityName
-props
-- Returns:
-
entityName
- Returns:
-
get
- Type Parameters:
T
-- Parameters:
propName
-- Returns:
-
get
Node: To follow one of general design rules inAbacus
, if there is a conversion behind when the source value is not assignable to the target type, put thetargetType
to last parameter of the method. Otherwise, put thetargetTpye
to the first parameter of the method.- Type Parameters:
T
-- Parameters:
propName
-targetType
-- Returns:
-
set
- Parameters:
propName
-propValue
-- Returns:
-
set
- Parameters:
nameValues
-
-
remove
- Parameters:
propName
-- Returns:
-
removeAll
Removes the all.- Parameters:
propNames
-
-
containsKey
- Parameters:
propName
-- Returns:
- true, if successful
-
keySet
Returns the property names which have been set value.- Returns:
- a collection of signed property names
- See Also:
-
entrySet
- Returns:
-
props
- Returns:
-
size
public int size()- Returns:
-
isEmpty
public boolean isEmpty()Checks if is empty.- Returns:
- true, if is empty
-
copy
- Returns:
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
-