Search in sources :

Example 96 with NonNull

use of android.support.annotation.NonNull in project storio by pushtorefresh.

the class BoxedTypesMethodsConstructorStorIOSQLitePutResolver method mapToContentValues.

/**
     * {@inheritDoc}
     */
@Override
@NonNull
public ContentValues mapToContentValues(@NonNull BoxedTypesMethodsConstructor object) {
    ContentValues contentValues = new ContentValues(6);
    contentValues.put("field1", object.getField1());
    contentValues.put("field6", object.getField6());
    contentValues.put("field3", object.getField3());
    contentValues.put("field2", object.getField2());
    contentValues.put("field5", object.getField5());
    contentValues.put("field4", object.getField4());
    return contentValues;
}
Also used : ContentValues(android.content.ContentValues) NonNull(android.support.annotation.NonNull) Override(java.lang.Override)

Example 97 with NonNull

use of android.support.annotation.NonNull in project storio by pushtorefresh.

the class BoxedTypesMethodsFactoryMethodStorIOSQLitePutResolver method mapToContentValues.

/**
     * {@inheritDoc}
     */
@Override
@NonNull
public ContentValues mapToContentValues(@NonNull BoxedTypesMethodsFactoryMethod object) {
    ContentValues contentValues = new ContentValues(6);
    contentValues.put("field1", object.getField1());
    contentValues.put("field6", object.getField6());
    contentValues.put("field3", object.getField3());
    contentValues.put("field2", object.getField2());
    contentValues.put("field5", object.getField5());
    contentValues.put("field4", object.getField4());
    return contentValues;
}
Also used : ContentValues(android.content.ContentValues) NonNull(android.support.annotation.NonNull) Override(java.lang.Override)

Example 98 with NonNull

use of android.support.annotation.NonNull in project storio by pushtorefresh.

the class PrimitiveFieldsStorIOSQLitePutResolver method mapToContentValues.

/**
     * {@inheritDoc}
     */
@Override
@NonNull
public ContentValues mapToContentValues(@NonNull PrimitiveFields object) {
    ContentValues contentValues = new ContentValues(8);
    contentValues.put("field1", object.field1);
    contentValues.put("field7", object.field7);
    contentValues.put("field6", object.field6);
    contentValues.put("field8", object.field8);
    contentValues.put("field3", object.field3);
    contentValues.put("field2", object.field2);
    contentValues.put("field5", object.field5);
    contentValues.put("field4", object.field4);
    return contentValues;
}
Also used : ContentValues(android.content.ContentValues) NonNull(android.support.annotation.NonNull) Override(java.lang.Override)

Example 99 with NonNull

use of android.support.annotation.NonNull in project storio by pushtorefresh.

the class PrimitiveMethodsConstructorStorIOSQLiteGetResolver method mapFromCursor.

/**
     * {@inheritDoc}
     */
@Override
@NonNull
public PrimitiveMethodsConstructor mapFromCursor(@NonNull Cursor cursor) {
    boolean field1 = cursor.getInt(cursor.getColumnIndex("field1")) == 1;
    short field2 = cursor.getShort(cursor.getColumnIndex("field2"));
    int field3 = cursor.getInt(cursor.getColumnIndex("field3"));
    long field4 = cursor.getLong(cursor.getColumnIndex("field4"));
    float field5 = cursor.getFloat(cursor.getColumnIndex("field5"));
    double field6 = cursor.getDouble(cursor.getColumnIndex("field6"));
    String field7 = cursor.getString(cursor.getColumnIndex("field7"));
    byte[] field8 = cursor.getBlob(cursor.getColumnIndex("field8"));
    PrimitiveMethodsConstructor object = new PrimitiveMethodsConstructor(field1, field2, field3, field4, field5, field6, field7, field8);
    return object;
}
Also used : String(java.lang.String) NonNull(android.support.annotation.NonNull) Override(java.lang.Override)

Example 100 with NonNull

use of android.support.annotation.NonNull in project storio by pushtorefresh.

the class PrimitiveMethodsConstructorStorIOSQLitePutResolver method mapToContentValues.

/**
     * {@inheritDoc}
     */
@Override
@NonNull
public ContentValues mapToContentValues(@NonNull PrimitiveMethodsConstructor object) {
    ContentValues contentValues = new ContentValues(8);
    contentValues.put("field1", object.getField1());
    contentValues.put("field7", object.getField7());
    contentValues.put("field6", object.getField6());
    contentValues.put("field8", object.getField8());
    contentValues.put("field3", object.getField3());
    contentValues.put("field2", object.getField2());
    contentValues.put("field5", object.getField5());
    contentValues.put("field4", object.getField4());
    return contentValues;
}
Also used : ContentValues(android.content.ContentValues) NonNull(android.support.annotation.NonNull) Override(java.lang.Override)

Aggregations

NonNull (android.support.annotation.NonNull)610 TextView (android.widget.TextView)65 View (android.view.View)64 ArrayList (java.util.ArrayList)57 Test (org.junit.Test)45 Intent (android.content.Intent)38 Cursor (android.database.Cursor)35 ContentValues (android.content.ContentValues)32 Bundle (android.os.Bundle)32 MaterialDialog (com.afollestad.materialdialogs.MaterialDialog)29 IOException (java.io.IOException)27 DialogAction (com.afollestad.materialdialogs.DialogAction)25 AlertDialog (android.support.v7.app.AlertDialog)24 Override (java.lang.Override)24 DialogInterface (android.content.DialogInterface)22 File (java.io.File)21 WorkerThread (android.support.annotation.WorkerThread)19 RecyclerView (android.support.v7.widget.RecyclerView)19 ImageView (android.widget.ImageView)19 HashMap (java.util.HashMap)19