Beispiel #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   SkyKey other = (SkyKey) obj;
   return argument.equals(other.argument) && functionName.equals(other.functionName);
 }
Beispiel #2
0
 public SkyKey(SkyFunctionName functionName, Object valueName) {
   this.functionName = Preconditions.checkNotNull(functionName);
   this.argument = Preconditions.checkNotNull(valueName);
   this.hashCode = 31 * functionName.hashCode() + argument.hashCode();
 }