/** Returns a set of the UrnSet version of the set. */ public static UrnSet modifiableSet(Set<? extends URN> set) { if (set instanceof UnmodifiableUrnSet) { UrnSet urnSet = (UrnSet) set; return new UrnSet(urnSet.getSHA1(), urnSet.getTTRoot()); } if (set instanceof UrnSet) { return (UrnSet) set; } else { return new UrnSet(set); } }
public UnmodifiableUrnSet(Set<? extends URN> set) { super.addAll(set); }