Exemple #1
0
 public boolean preloadJar(ClassLoader local, Class... classesInJar)
     throws IOException, InterruptedException {
   URL[] jars = new URL[classesInJar.length];
   for (int i = 0; i < classesInJar.length; i++)
     jars[i] = Which.jarFile(classesInJar[i]).toURI().toURL();
   return call(new PreloadJarTask(jars, local));
 }
Exemple #2
0
 @Override
 public int hashCode() {
   int result = 0;
   result = 31 * result + (which != null ? which.hashCode() : 0);
   result = 31 * result + (first != null ? first.hashCode() : 0);
   result = 31 * result + (second != null ? second.hashCode() : 0);
   return result;
 }
Exemple #3
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof Ref2)) return false;

    Ref2 ref2 = (Ref2) o;

    if (which != null ? !which.equals(ref2.which) : ref2.which != null) return false;
    if (first != null ? !first.equals(ref2.first) : ref2.first != null) return false;
    if (second != null ? !second.equals(ref2.second) : ref2.second != null) return false;

    return true;
  }