Android Open Source - bugfree-context-demo Note Book Interface






From Project

Back to project page bugfree-context-demo.

License

The source code is released under:

MIT License

If you think the Android project bugfree-context-demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.hustbaidu.notebook.api;
import java.util.List;
//w ww  . j ava  2  s.c om
import com.hustbaidu.notebook.model.Note;

public interface NoteBookInterface {
  
  /**
   *  save note to file or database
   * @param note
   * @return
   */
  public boolean save (Note note);
  
  /**
   * get all note
   * @return List
   */
  public List<Note> findAll();
  
  /**
   * find by id, for database implement only
   * @param id
   * @return a note
   */
  public Note findWithId (int id);
  
  /**
   * 
   * @param name
   * @return
   */
  public Note findWithName (String name);
  
  public boolean remove (Note note);
}




Java Source Code List

com.hustbaidu.notebook.activity.EditorActivity.java
com.hustbaidu.notebook.activity.MainActivity.java
com.hustbaidu.notebook.api.NoteBookInterface.java
com.hustbaidu.notebook.file.NoteFileAPI.java
com.hustbaidu.notebook.model.Note.java