@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); }
private static String[] compileModuleName(PackageName packname, ModuleName modname) { return Name.compileElements(packname.getElements(), modname.getLastElement()); }
// 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 }