Java android.content ContentValues fields, constructors, methods, implement or subclass

Example usage for Java android.content ContentValues fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content ContentValues.

The text is from its open source code.

Field

Parcelable.CreatorCREATOR

Constructor

ContentValues()
Creates an empty set of values using the default initial size
ContentValues(int size)
Creates an empty set of values using the given initial size
ContentValues(ContentValues from)
Creates a set of values copied from the given set
ContentValues(HashMap from)
ContentValues(Parcel in)

Method

voidclear()
Removes all values.
booleancontainsKey(String key)
Returns true if this object has the named value.
Objectget(String key)
Gets a value.
BooleangetAsBoolean(String key)
Gets a value and converts it to a Boolean.
BytegetAsByte(String key)
Gets a value and converts it to a Byte.
byte[]getAsByteArray(String key)
Gets a value that is a byte array.
DoublegetAsDouble(String key)
Gets a value and converts it to a Double.
FloatgetAsFloat(String key)
Gets a value and converts it to a Float.
IntegergetAsInteger(String key)
Gets a value and converts it to an Integer.
LonggetAsLong(String key)
Gets a value and converts it to a Long.
StringgetAsString(String key)
Gets a value and converts it to a String.
SetkeySet()
Returns a set of all of the keys
voidput(String key, String value)
Adds a value to the set.
voidput(String key, Byte value)
Adds a value to the set.
voidput(String key, Short value)
Adds a value to the set.
voidput(String key, Integer value)
Adds a value to the set.
voidput(String key, Long value)
Adds a value to the set.
voidput(String key, Float value)
Adds a value to the set.
voidput(String key, Double value)
Adds a value to the set.
voidput(String key, Boolean value)
Adds a value to the set.
voidput(String key, byte[] value)
Adds a value to the set.
voidputAll(ContentValues other)
Adds all values from the passed in ContentValues.
voidputNull(String key)
Adds a null value to the set.
voidremove(String key)
Remove a single value.
intsize()
Returns the number of values.
StringtoString()
Returns a string containing a concise, human-readable description of this object.
Set>valueSet()
Returns a set of all of the keys and values
voidwriteToParcel(Parcel parcel, int flags)