Android SDK Version
All Implemented Interfaces:
android.os.Parcelable , com.facebook.share.model.ShareModel


public abstract class ShareOpenGraphValueContainer<P extends ShareOpenGraphValueContainer, E extends ShareOpenGraphValueContainer.Builder>
 implements ShareModel
Provides an abstract class to contain Open Graph values.
Use ShareOpenGraphValueContainer.Builder to create instances
Nested Class Summary
Modifier and TypeClassDescription
public abstract classShareOpenGraphValueContainer.Builder
Field Summary
Modifier and TypeFieldDescription
private final Bundlebundle
Method Summary
Modifier and TypeMethodDescription
BundlegetBundle() Returns the values in the container packaged in a bundle.
Objectget(String key) Gets a value out of the object.
booleangetBoolean(String key, boolean defaultValue) Gets a boolean value out of the object.
Array<boolean>getBooleanArray(String key) Gets an array of boolean values out of the object.
doublegetDouble(String key, double defaultValue) Gets a double value out of the object.
Array<double>getDoubleArray(String key) Gets an array of double values out of the object.
intgetInt(String key, int defaultValue) Gets an int value out of the object.
Array<int>getIntArray(String key) Gets an array of int values out of the object.
longgetLong(String key, long defaultValue) Gets an long value out of the object.
Array<long>getLongArray(String key) Gets an array of long values out of the object.
ShareOpenGraphObjectgetObject(String key) Gets an object value out of the object.
ArrayList<ShareOpenGraphObject>getObjectArrayList(String key) Gets an array of object values out of the object.
SharePhotogetPhoto(String key) Gets a photo value out of the object.
ArrayList<SharePhoto>getPhotoArrayList(String key) Gets an array of photo values out of the object.
StringgetString(String key) Gets a string value out of the object.
ArrayList<String>getStringArrayList(String key) Gets an array of string values out of the object.
Set<String>keySet() Returns a set of the keys contained in this object.
intdescribeContents()
voidwriteToParcel(Parcel out, int flags)
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getBundle

BundlegetBundle()
Returns the values in the container packaged in a bundle.

get

@Nullable() Objectget(String key)
Gets a value out of the object.
Parameters:
key - The key for the value.

getBoolean

 boolean getBoolean(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.

getBooleanArray

@Nullable() Array<boolean> getBooleanArray(String key)
Gets an array of boolean values out of the object.
Parameters:
key - The key for the value.

getDouble

 double getDouble(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.

getDoubleArray

@Nullable() Array<double> getDoubleArray(String key)
Gets an array of double values out of the object.
Parameters:
key - The key for the value.

getInt

 int getInt(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.

getIntArray

@Nullable() Array<int> getIntArray(String key)
Gets an array of int values out of the object.
Parameters:
key - The key for the value.

getLong

 long getLong(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.

getLongArray

@Nullable() Array<long> getLongArray(String key)
Gets an array of long values out of the object.
Parameters:
key - The key for the value.

getObject

ShareOpenGraphObjectgetObject(String key)
Gets an object value out of the object.
Parameters:
key - The key for the value.

getObjectArrayList

@Nullable() ArrayList<ShareOpenGraphObject> getObjectArrayList(String key)
Gets an array of object values out of the object.
Parameters:
key - The key for the value.

getPhoto

@Nullable() SharePhotogetPhoto(String key)
Gets a photo value out of the object.
Parameters:
key - The key for the value.

getPhotoArrayList

@Nullable() ArrayList<SharePhoto> getPhotoArrayList(String key)
Gets an array of photo values out of the object.
Parameters:
key - The key for the value.

getString

@Nullable() StringgetString(String key)
Gets a string value out of the object.
Parameters:
key - The key for the value.

getStringArrayList

@Nullable() ArrayList<String> getStringArrayList(String key)
Gets an array of string values out of the object.
Parameters:
key - The key for the value.

keySet

Set<String> keySet()
Returns a set of the keys contained in this object.

describeContents

 int describeContents()

writeToParcel

 void writeToParcel(Parcel out, int flags)