Code example for StringBuilder

Methods: appendtoString

0
            final long syncState = !contact.isNull("x") ? contact.getLong("x") : 0;
            return new RawContact(userName, null, firstName, lastName, cellPhone,
                    officePhone, homePhone, email, status, avatarUrl, deleted,
                    serverContactId, rawContactId, syncState, false);
        } catch (final Exception ex) {
            Log.i(TAG, "Error parsing JSON contact object" + ex.toString());
        } 
        return null; 
    } 
 
    /** 
     * Creates and returns RawContact instance from all the supplied parameters. 
     */ 
    public static RawContact create(String fullName, String firstName, String lastName,
            String cellPhone, String officePhone, String homePhone,
            String email, String status, boolean deleted, long rawContactId,
            long serverContactId) {
        return new RawContact(null, fullName, firstName, lastName, cellPhone, officePhone,
                homePhone, email, status, null, deleted, serverContactId, rawContactId,
                -1, true); 
Stop searching for code, let great code find you!  Add Codota to your java IDE