use of de.djuelg.neuronizer.storage.converter.NoteDAOConverter in project Neuronizer by djuelg.
the class NoteRepositoryImpl method get.
@Override
public Optional<Note> get(String uuid) {
Realm realm = Realm.getInstance(configuration);
Optional<NoteDAO> noteDAO = Optional.fromNullable(realm.where(NoteDAO.class).equalTo("uuid", uuid).findFirst());
Optional<Note> note = noteDAO.transform(new NoteDAOConverter());
realm.close();
return note;
}
Aggregations