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

public abstract static class ShareOpenGraphValueContainer.Builder<P extends ShareOpenGraphValueContainer,E extends ShareOpenGraphValueContainer.Builder>
extends java.lang.Object
implements ShareModelBuilder<P,E>
Abstract builder for the ShareOpenGraphValueContainer class.
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
EputBoolean(java.lang.String key, boolean value)
Sets a boolean value in the object.
EputBooleanArray(java.lang.String key, boolean[] value)
Sets an array of boolean values in the object.
EputDouble(java.lang.String key, double value)
Sets a double value in the object.
EputDoubleArray(java.lang.String key, double[] value)
Sets an array of double values in the object.
EputInt(java.lang.String key, int value)
Sets an int value in the object.
EputIntArray(java.lang.String key, int[] value)
Sets an array of int values in the object.
EputLong(java.lang.String key, long value)
Sets a long value in the object.
EputLongArray(java.lang.String key, long[] value)
Sets an array of long values in the object.
EputObject(java.lang.String key, ShareOpenGraphObject value)
Sets an object value in the object.
EputObjectArrayList(java.lang.String key, java.util.ArrayList<ShareOpenGraphObject> value)
Sets an array of object values in the object.
EputPhoto(java.lang.String key, SharePhoto value)
Sets a photo value in the object.
EputPhotoArrayList(java.lang.String key, java.util.ArrayList<SharePhoto> value)
Sets an array of photo values in the object.
EputString(java.lang.String key, java.lang.String value)
Sets a string value in the object.
EputStringArrayList(java.lang.String key, java.util.ArrayList<java.lang.String> value)
Sets an array of string values in the object.
EreadFrom(P model)
Reads the values from a ShareModel into the builder.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.facebook.share.
build
Constructor Detail

Builder

public Builder()
Method Detail

putBoolean

public E putBoolean(java.lang.String key,
                    boolean value)
Sets a boolean value in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putBooleanArray

public E putBooleanArray(java.lang.String key,
                         boolean[] value)
Sets an array of boolean values in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putDouble

public E putDouble(java.lang.String key,
                   double value)
Sets a double value in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putDoubleArray

public E putDoubleArray(java.lang.String key,
                        double[] value)
Sets an array of double values in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putInt

public E putInt(java.lang.String key,
                int value)
Sets an int value in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putIntArray

public E putIntArray(java.lang.String key,
                     int[] value)
Sets an array of int values in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putLong

public E putLong(java.lang.String key,
                 long value)
Sets a long value in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putLongArray

public E putLongArray(java.lang.String key,
                      long[] value)
Sets an array of long values in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putObject

public E putObject(java.lang.String key,
                   ShareOpenGraphObject value)
Sets an object value in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putObjectArrayList

public E putObjectArrayList(java.lang.String key,
                            java.util.ArrayList<ShareOpenGraphObject> value)
Sets an array of object values in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putPhoto

public E putPhoto(java.lang.String key,
                  SharePhoto value)
Sets a photo value in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putPhotoArrayList

public E putPhotoArrayList(java.lang.String key,
                           java.util.ArrayList<SharePhoto> value)
Sets an array of photo values in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putString

public E putString(java.lang.String key,
                   java.lang.String value)
Sets a string value in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

putStringArrayList

public E putStringArrayList(java.lang.String key,
                            java.util.ArrayList<java.lang.String> value)
Sets an array of string values in the object.
Parameters:
key - The key for the value.
value - The value.
Returns:
The builder.

readFrom

public E readFrom(P model)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Parameters:
model - The source ShareModel
Returns:
The builder.