public boolean isExpired(){
  return this.ttl == 0 ? false : this.ttl < System.currentTimeMillis();
}

public boolean isExpired ( ) { return this . ttl == 0 ? false : this . ttl < System . currentTimeMillis ( ) ; }
true if the entry is expired .
