APISonar


io.realm.RealmFieldType.DATE

> io > realm > RealmFieldType > DATE
io APIs realm APIs RealmFieldType APIs DATE APIs

Example 1
public void maximumDate() {

        Table table = TestHelper.createTable(sharedRealm, "temp", new TestHelper.AdditionalTableSetup() {
            @Override
            public void execute(Table table) {
                table.addColumn(RealmFieldType.DATE, "date");

                TestHelper.addRowWithValues(table, new Date(0));
                TestHelper.addRowWithValues(table, new Date(10000));
                TestHelper.addRowWithValues(table, new Date(1000));
            }
        });

        assertEquals(new Date(10000), table.where().maximumDate(0));
    }