List of utility methods to do Set to
int[] | toIntArray(Set to Int Array int[] rslt = new int[is.size()]; Iterator<Integer> iter = is.iterator(); for (int i = 0; i < rslt.length; i++) { Integer x = iter.next(); if (x != null) { rslt[i] = x; return rslt; |
Set | toUnmodifiableSet(final Collection extends T> source) to Unmodifiable Set if (source instanceof Set) { return Collections.unmodifiableSet(CAST(source)); return Collections.unmodifiableSet(linkedSet(source)); |
Set | toUnmodifiableSet(String... values) to Unmodifiable Set return Collections.unmodifiableSet(new HashSet<String>(Arrays.<String>asList(values))); |