public Boolean isExpired(){
  if (isNeverExpiry) {
    return false;
  }
  if (writeTime <= 0) {
    return true;
  }
  if (expirationTime <= 0) {
    return true;
  }
  long intervalTime=System.currentTimeMillis() - writeTime;
  String format="yyyy-MM-dd HH:mm";
  String currentTimeStr=getStringByFormat(System.currentTimeMillis(),format);
  String writeTimeStr=getStringByFormat(writeTime,format);
  CLog.d("currentTime:%s，writeTime:%s，interval:%s s",(Object)currentTimeStr,writeTimeStr,intervalTime / 1000);
  if (intervalTime < expirationTime) {
    return false;
  }
 else {
    return true;
  }
}

public Boolean isExpired ( ) { if ( isNeverExpiry ) { return false ; } if ( writeTime <= 0 ) { return true ; } if ( expirationTime <= 0 ) { return true ; } long intervalTime = System . currentTimeMillis ( ) - writeTime ; String format = "yyyy-MM-dd HH:mm" ; String currentTimeStr = getStringByFormat ( System . currentTimeMillis ( ) , format ) ; String writeTimeStr = getStringByFormat ( writeTime , format ) ; CLog . d ( "currentTime:%s，writeTime:%s，interval:%s s" , ( Object ) currentTimeStr , writeTimeStr , intervalTime / 1000 ) ; if ( intervalTime < expirationTime ) { return false ; } else { return true ; } }
check out the data is or not expired
