@Test public void testHashCode() { System.out.println("hashCode"); Cell instance = new Cell(2,3); int expResult = 1026; int result = instance.hashCode(); assertEquals(expResult,result); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + x; result = prime * result + y; return result; }
Cell { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + x; result = prime * result + y; return result; } }
Cell { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + x; result = prime * result + y; return result; } Cell(int x,int y);  Cell(int x,int y,State state); }
Cell { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + x; result = prime * result + y; return result; } Cell(int x,int y);  Cell(int x,int y,State state); int getX(); int getY(); State getState(); void setState(State state); @Override int hashCode(); @Override boolean equals(Object obj); Cell createCopy(); }
Cell { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + x; result = prime * result + y; return result; } Cell(int x,int y);  Cell(int x,int y,State state); int getX(); int getY(); State getState(); void setState(State state); @Override int hashCode(); @Override boolean equals(Object obj); Cell createCopy();  }