title: can you have multiple hashcode and equals
body: <p>Alright, I need to be pointed in the right direction. I already have a hash code and an equals method with over ride. </p>
  
  <pre><code>@Override 
  public int hashCode() {         
      return  type.hashCode() ^ type2.hashCode() ^ type3.hashCode()  ;        } 
  
  @Override 
  public boolean equals(Object obj) { 
      if (!(obj instanceof MyObject)) {
          return false;
      }
      MyObject mdc = (MyObject) obj; 
      return mdc.type.equals(type) &amp;&amp; mdc.type2.equals(type2) &amp;&amp; mdc.type3.equals(type3); 
  }
  </code></pre>
  
  <p>now what if i want to only compare the first and second type and not the third? Can I have two hash and equal methods for later use?</p>
  
  <p>What I want to do is, if type 1 and type2 matches, delete them from the current arraylist and add them to a new list, showing which ones were the same type. This is different from the hash code shown above. </p>
  
  <p>Is there another way within an array, I can see which combination of type1 and type2 appears multiple times? </p>
  
  <p>Ex:</p>
  
  <ul>
  <li>Shooting Halo</li>
  <li>Shooting CallofDuty</li>
  <li>Racing Forza</li>
  <li>............</li>
  <li>.........</li>
  <li>..........</li>
  <li>Shooting Halo</li>
  </ul>
  
  <p>Shooting Halo appears twice, they need to be removed and added to another list, but problem is that I already have a hashcode for previous use.</p>
  
  <p>Edit: I want to thank everyone for their ideas. I have solved this problem by creating another object class with similar getters and setters but with a newer hash code and it worked. Next time I will use a better logic method. My main goal on this post was to know if there was any way to have multiple hashcode and method in one class which apparently isn't possible. :)</p>