Beispiel #1
0
public class ProjectsData {
  private static Map<String, HitoProject> data;

  private static Map<String, HitoProject> secureData = HitoProjectBuilder.getHitoProjects();

  public static Map<String, HitoProject> getData() {
    if (data == null) {
      data = HitoProjectBuilder.getHitoProjects();
    }
    return ProjectsData.data;
  }

  public static Map<String, HitoProject> getSecuredata() {
    return secureData;
  }

  public static void setData(Map<String, HitoProject> data) {
    ProjectsData.data = data;
  }
}
Beispiel #2
0
 public static Map<String, HitoProject> getData() {
   if (data == null) {
     data = HitoProjectBuilder.getHitoProjects();
   }
   return ProjectsData.data;
 }