New file |
0,0 → 1,30 |
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; |
} |
|
} |