Package mil.nga.geopackage.user
Class ContentValues
- java.lang.Object
-
- mil.nga.geopackage.user.ContentValues
-
public class ContentValues extends Object
Content Values mapping between columns and values. This is a simplified implementation of the Android counter part android.content.ContentValues- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description ContentValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String key)
Get the value of the keyString
getAsString(String key)
Get the key value as a stringSet<String>
keySet()
Get a field key setvoid
put(String key, Object value)
Put a key value pairvoid
putNull(String key)
Put a key null valueint
size()
Get the number of value mappingsString
toString()
Set<Map.Entry<String,Object>>
valueSet()
Get a value set of the mappings
-
-
-
Method Detail
-
put
public void put(String key, Object value)
Put a key value pair- Parameters:
key
- keyvalue
- value
-
putNull
public void putNull(String key)
Put a key null value- Parameters:
key
- key
-
size
public int size()
Get the number of value mappings- Returns:
- size
-
valueSet
public Set<Map.Entry<String,Object>> valueSet()
Get a value set of the mappings- Returns:
- value set
-
getAsString
public String getAsString(String key)
Get the key value as a string- Parameters:
key
- key- Returns:
- string value
-
-