New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API review & cleanup for 1.0 #1594
Comments
Some things on my list:
|
In Swift the method is called |
As part of the 1.0 cleanup https://github.com/realm/realm-java-private/issues/21 |
This should also include formalising our Javadoc style and do a cleanup based on that. |
👍 public interface RealmChange<T> {
void onChange(T obj);
}
// RealmResults:
public void addChange(RealmChange<RealmResults<E>> listener) {
};
//
public void test() {
allObjects(Foo.class).addChange(new RealmChange<RealmResults<Foo>>() {
@Override
public void onChange(RealmResults<Foo> obj) {
}
});
} |
|
Keep it e.g Java |
|
|
|
Done in #1363 |
This could happen in the adapter which only hold a reference to a results.getRealm().beginTransaction();
restults.getRealm().commitTransaction(); but cannot do: results.getRealm().executeTransaction(); |
|
some output from the API review I did with JP for Cocoa (16/03/2016)
~~ 2- you pass a callback & the user will have the Result when the first run completes |
public |
I don't think this is quite right. NSPredicate's support for "distinct" is quite different than what Java's API provides, and cannot be used to achieve the same results as the Java API. |
|
…lection as well (#2705) RealmChangeListener should provide the changes object/realm/collection as well
All issues fixed. Closing |
Is that 841 fixed? Do we have any api to get Results based on list. |
The following things should be implemented:
allObjects
and friends from Realm so all query options are in RealmQuery. ( Move all query methods to RealmQuery #2620 )setModules()
rename tomodules()
( Use RealmConfig.modules() instead of RealmConfig.setModules() #2621 )copyToRealm
orcopyToRealmOrUpdate
(mc Checked, all methods which could add/change object in the list, will callcopyToRealmIfNeeded
)io.realm
) (BaseRealm should be package protected #2673)RealmAsyncTask
should be package protected (mark constructor of RealmAsyncTask package protected #2676).This issue help track any suggested refactoring, cleanup of the current API to prepare for 1.0 release.
this is not a call for feature, but a take on the existing API to rename/refactor.
please share your suggestions, it would be helpful to include motivation & code snippet/prototype so people can have a quick idea to up/down vote.
The text was updated successfully, but these errors were encountered: