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 Objectget(String key)Get the value of the keyStringgetAsString(String key)Get the key value as a stringSet<String>keySet()Get a field key setvoidput(String key, Object value)Put a key value pairvoidputNull(String key)Put a key null valueintsize()Get the number of value mappingsStringtoString()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
-
-