Android SDK Version
  • java.lang.Object
    • com.facebook.share.model.ShareOpenGraphValueContainer<P,E>
All Implemented Interfaces:

public abstract class ShareOpenGraphValueContainer<P extends ShareOpenGraphValueContainer,E extends ShareOpenGraphValueContainer.Builder>
extends java.lang.Object
implements ShareModel
Provides an abstract class to contain Open Graph values. Use ShareOpenGraphValueContainer.Builder to create instances
Nested Class Summary
Modifier and TypeClass and Description
static class ShareOpenGraphValueContainer.Builder<P extends ShareOpenGraphValueContainer,E extends ShareOpenGraphValueContainer.Builder>
Abstract builder for the ShareOpenGraphValueContainer class.
Constructor Summary
ModifierConstructor and Description
protected ShareOpenGraphValueContainer(ShareOpenGraphValueContainer.Builder<P,E> builder) 
Method Summary
Modifier and TypeMethod and Description
intdescribeContents() 
java.lang.Objectget(java.lang.String key)
Gets a value out of the object.
booleangetBoolean(java.lang.String key, boolean defaultValue)
Gets a boolean value out of the object.
boolean[]getBooleanArray(java.lang.String key)
Gets an array of boolean values out of the object.
BundlegetBundle()
Returns the values in the container packaged in a bundle.
doublegetDouble(java.lang.String key, double defaultValue)
Gets a double value out of the object.
double[]getDoubleArray(java.lang.String key)
Gets an array of double values out of the object.
intgetInt(java.lang.String key, int defaultValue)
Gets an int value out of the object.
int[]getIntArray(java.lang.String key)
Gets an array of int values out of the object.
longgetLong(java.lang.String key, long defaultValue)
Gets an long value out of the object.
long[]getLongArray(java.lang.String key)
Gets an array of long values out of the object.
ShareOpenGraphObjectgetObject(java.lang.String key)
Gets an object value out of the object.
java.util.ArrayList<ShareOpenGraphObject>getObjectArrayList(java.lang.String key)
Gets an array of object values out of the object.
SharePhotogetPhoto(java.lang.String key)
Gets a photo value out of the object.
java.util.ArrayList<SharePhoto>getPhotoArrayList(java.lang.String key)
Gets an array of photo values out of the object.
java.lang.StringgetString(java.lang.String key)
Gets a string value out of the object.
java.util.ArrayList<java.lang.String>getStringArrayList(java.lang.String key)
Gets an array of string values out of the object.
java.util.Set<java.lang.String>keySet()
Returns a set of the keys contained in this object.
voidwriteToParcel(Parcel out, int flags) 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

ShareOpenGraphValueContainer

protected ShareOpenGraphValueContainer(ShareOpenGraphValueContainer.Builder<P,E> builder)
Method Detail

get

public java.lang.Object get(java.lang.String key)
Gets a value out of the object.
Parameters:
key - The key for the value.
Returns:
The boolean value.

getBoolean

public boolean getBoolean(java.lang.String key,
                          boolean defaultValue)
Gets a boolean value out of the object.
Parameters:
key - The key for the value.
defaultValue - The value to return if no value is found for the specified key.
Returns:
The boolean value.

getBooleanArray

public boolean[] getBooleanArray(java.lang.String key)
Gets an array of boolean values out of the object.
Parameters:
key - The key for the value.
Returns:
The boolean values.

getDouble

public double getDouble(java.lang.String key,
                        double defaultValue)
Gets a double value out of the object.
Parameters:
key - The key for the value.
defaultValue - The value to return if no value is found for the specified key.
Returns:
The double value.

getDoubleArray

public double[] getDoubleArray(java.lang.String key)
Gets an array of double values out of the object.
Parameters:
key - The key for the value.
Returns:
The double values.

getInt

public int getInt(java.lang.String key,
                  int defaultValue)
Gets an int value out of the object.
Parameters:
key - The key for the value.
defaultValue - The value to return if no value is found for the specified key.
Returns:
The int value.

getIntArray

public int[] getIntArray(java.lang.String key)
Gets an array of int values out of the object.
Parameters:
key - The key for the value.
Returns:
The int values.

getLong

public long getLong(java.lang.String key,
                    long defaultValue)
Gets an long value out of the object.
Parameters:
key - The key for the value.
defaultValue - The value to return if no value is found for the specified key.
Returns:
The long value.

getLongArray

public long[] getLongArray(java.lang.String key)
Gets an array of long values out of the object.
Parameters:
key - The key for the value.
Returns:
The long values.

getObject

public ShareOpenGraphObject getObject(java.lang.String key)
Gets an object value out of the object.
Parameters:
key - The key for the value.
Returns:
The object value.

getObjectArrayList

public java.util.ArrayList<ShareOpenGraphObject> getObjectArrayList(java.lang.String key)
Gets an array of object values out of the object.
Parameters:
key - The key for the value.
Returns:
The object values.

getPhoto

public SharePhoto getPhoto(java.lang.String key)
Gets a photo value out of the object.
Parameters:
key - The key for the value.
Returns:
The photo value.

getPhotoArrayList

public java.util.ArrayList<SharePhoto> getPhotoArrayList(java.lang.String key)
Gets an array of photo values out of the object.
Parameters:
key - The key for the value.
Returns:
The photo values.

getString

public java.lang.String getString(java.lang.String key)
Gets a string value out of the object.
Parameters:
key - The key for the value.
Returns:
The string value.

getStringArrayList

public java.util.ArrayList<java.lang.String> getStringArrayList(java.lang.String key)
Gets an array of string values out of the object.
Parameters:
key - The key for the value.
Returns:
The string values.

getBundle

public Bundle getBundle()
Returns the values in the container packaged in a bundle.
Returns:
A bundle with the values.

keySet

public java.util.Set<java.lang.String> keySet()
Returns a set of the keys contained in this object.
Returns:
A set of the keys.

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)