class Expiring {

    public T value () {
        if (isExpired()) return null;
        return this.object;
    }

    public  Expiring(T object, Instant expiryTime);
    public  Expiring(T object, long millis);
    public  Expiring(T object, Duration objectDuration);

}