Rev 14 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.del.client.cache;
import org.tela_botanica.del.client.modeles.Observation;
public class ClientCache {
private Observation currentObservation;
private static ClientCache instance;
private ClientCache() {
instance = this;
}
public Observation getCurrentImageCel() {
return currentObservation;
}
public void setCurrentImageCel(Observation currentObservation) {
this.currentObservation = currentObservation;
}
public static ClientCache getInstance() {
if (instance == null) {
instance = new ClientCache();
}
return instance;
}
}