Android Open Source - Qachee Qacheeable Object

From Project

Back to project page Qachee.


The source code is released under:

Apache License

If you think the Android project Qachee 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.qachee;
/*from ww w  .j  ava  2  s  . c o  m*/

 * This abstract class is the responsible to check and update the last updated time. Typically POJOs
 * should be subclasses of QacheeableObject.
public abstract class QacheeableObject implements Qacheeable {

  private long lastUpdate;

  public QacheeableObject() {
    this.lastUpdate = System.currentTimeMillis();

  public long lastUpdate() {
    long result = System.currentTimeMillis() - this.lastUpdate;
    return result;

  public void update() {
    this.lastUpdate = System.currentTimeMillis();

Java Source Code List