Class 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 Detail

      • ContentValues

        public ContentValues()
    • Method Detail

      • put

        public void put​(String key,
                        Object value)
        Put a key value pair
        Parameters:
        key - key
        value - 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
      • get

        public Object get​(String key)
        Get the value of the key
        Parameters:
        key - key
        Returns:
        value
      • keySet

        public Set<String> keySet()
        Get a field key set
        Returns:
        field key set
      • getAsString

        public String getAsString​(String key)
        Get the key value as a string
        Parameters:
        key - key
        Returns:
        string value