Пример #1
0
 @Override
 public boolean equals(Object o) {
   if (this == o) {
     return true;
   }
   if (!(o instanceof ModuleName)) {
     return false;
   }
   ModuleName n = (ModuleName) o;
   return n.canEqual(this) && super.equals(o);
 }
Пример #2
0
 private static String[] compileModuleName(PackageName packname, ModuleName modname) {
   return Name.compileElements(packname.getElements(), modname.getLastElement());
 }
Пример #3
0
 // fullname is the un-projected name; localname is the already projected simple name
 public static ModuleName projectModuleName(ModuleName fullname, LProtocolName localname) {
   ModuleName simpname =
       new ModuleName(fullname.getSimpleName().toString() + "_" + localname.toString());
   return new ModuleName(fullname.getPrefix(), simpname); // Supports unary fullname
 }