-
- 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
Nested Classes Modifier and Type Class Description public abstract classShareOpenGraphValueContainer.BuilderAbstract builder for the com.facebook.share.model.ShareOpenGraphValueContainer class.
-
Method Summary
Modifier and Type Method Description 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)-
-
Method Detail
-
get
@Nullable() Object get(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
ShareOpenGraphObject getObject(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() SharePhoto getPhoto(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() String getString(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.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel out, int flags)
-
-
-
-