Java tutorial
//package com.java2s; import java.util.Collections; import java.util.Set; public class Main { public static <T> Set<T> unmodifiableSetOrNull(Set<? extends T> a_set) /* */ { /* 286 */return a_set == null ? null : Collections.unmodifiableSet(a_set); /* */} }