public static ProfileFieldsFragment newInstance(ProfileField<?>[] fieldsToShow) {
        if (fieldsToShow == null) {
            throw new NullPointerException();
        }

        Bundle b = new Bundle();
        b.putStringArray(EXTRA_FIELDS_TO_SHOW, ProfileField.toIdentifierList(fieldsToShow));
        ProfileFieldsFragment instance = new ProfileFieldsFragment();
        instance.setArguments(b);
        return instance;
    }
public static ProfileFieldsFragment newInstance(ProfileField<?>[] fieldsToShow) {
        if (fieldsToShow == null) {
            throw new NullPointerException();
        }

        Bundle b = new Bundle();
        b.putStringArray(EXTRA_FIELDS_TO_SHOW, ProfileField.toIdentifierList(fieldsToShow));
        ProfileFieldsFragment instance = new ProfileFieldsFragment();
        instance.setArguments(b);
        return instance;
    }
public static ProfileFieldsFragment newInstance ( ProfileField < ? > [ ] fieldsToShow ) { if ( fieldsToShow == null ) { throw new NullPointerException ( ) ; } Bundle b = new Bundle ( ) ; b . putStringArray ( EXTRA_FIELDS_TO_SHOW , ProfileField . toIdentifierList ( fieldsToShow ) ) ; ProfileFieldsFragment instance = new ProfileFieldsFragment ( ) ; instance . setArguments ( b ) ; return instance ; }
Creates a new instance of {@link ProfileFieldsFragment} to show the given
list of profile fields.

@param fieldsToShow - the fields to show;
@return an instance of {@link ProfileFieldsFragment};
Creates a new instance of { @link ProfileFieldsFragment } to show the given list of profile fields .