com.jpattern.service.cache.simple.CacheElement Maven / Gradle / Ivy
package com.jpattern.service.cache.simple;
import java.io.Serializable;
/**
*
* @author Francesco Cina'
*
* 24/set/2011
*/
public class CacheElement implements ICacheElement {
private static final long serialVersionUID = 1L;
private final Serializable value;
private final long timestamp;
public CacheElement (Serializable value, long timestamp) {
this.value = value;
this.timestamp = timestamp;
}
@Override
public Serializable getValue() {
return value;
}
@Override
public long getTimestamp() {
return timestamp;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy