Esempio n. 1
0
 static Set toImmutableSet(Object obj) {
   Set set = new HashSet();
   set.add(obj);
   set = Collections.unmodifiableSet(set);
   return set;
 }
Esempio n. 2
0
 Collection getServiceCollection() {
   // TBD think about threads?!
   return Collections.unmodifiableSet(fwCtx.listeners.serviceListeners.serviceSet);
 }