use of io.realm.entities.NonLatinFieldNames in project realm-java by realm.
the class RealmResultsTests method populateTestRealm.
private void populateTestRealm(Realm testRealm, int objects) {
testRealm.beginTransaction();
testRealm.deleteAll();
for (int i = 0; i < objects; i++) {
AllTypes allTypes = testRealm.createObject(AllTypes.class);
allTypes.setColumnBoolean((i % 3) == 0);
allTypes.setColumnBinary(new byte[] { 1, 2, 3 });
allTypes.setColumnDate(new Date(DECADE_MILLIS * (i - (objects / 2))));
allTypes.setColumnDouble(3.1415);
allTypes.setColumnFloat(1.234567f + i);
allTypes.setColumnString("test data " + i);
allTypes.setColumnLong(i);
NonLatinFieldNames nonLatinFieldNames = testRealm.createObject(NonLatinFieldNames.class);
nonLatinFieldNames.set델타(i);
nonLatinFieldNames.setΔέλτα(i);
nonLatinFieldNames.set베타(1.234567f + i);
nonLatinFieldNames.setΒήτα(1.234567f + i);
}
testRealm.commitTransaction();
}
Aggregations