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