Ejemplo n.º 1
0
 /** 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);
   }
 }
Ejemplo n.º 2
0
 public UnmodifiableUrnSet(Set<? extends URN> set) {
   super.addAll(set);
 }