コード例 #1
0
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + buildConfiguration.hashCode();
   result = prime * result + hashCode(requestedBuilt);
   result = prime * result + hashCode(buildOrder);
   return result;
 }
コード例 #2
0
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   BuildContext other = (BuildContext) obj;
   if (!buildConfiguration.equals(other.buildConfiguration)) return false;
   if (!Arrays.equals(requestedBuilt, other.requestedBuilt)) return false;
   if (!Arrays.equals(buildOrder, other.buildOrder)) return false;
   return true;
 }