Пример #1
0
 public static void removeAll() {
   for (Hologram h : new ArrayList<Hologram>(holograms)) h.destroy();
 }
Пример #2
0
 public void follow() {
   if (following == null) return;
   for (Hologram h : new ArrayList<Hologram>(holograms))
     if (h.following.equals(following)) h.interrupt();
   holograms.add(this);
 }