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