@Test public void testHashCode() { final CsvContext context1 = new CsvContext(1, 2, 3); final CsvContext context2 = new CsvContext(1, 2, 3); assertEquals(context1.hashCode(), context2.hashCode()); final CsvContext contextWithSource1 = new CsvContext(1, 2, 3); contextWithSource1.setRowSource(Arrays.asList(new Object[] { "one", "two", "three" })); final CsvContext contextWithSource2 = new CsvContext(1, 2, 3); contextWithSource2.setRowSource(Arrays.asList(new Object[] { "one", "two", "three" })); assertEquals(contextWithSource1.hashCode(), contextWithSource2.hashCode()); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + columnNumber; result = prime * result + rowNumber; result = prime * result + lineNumber; result = prime * result + ((rowSource == null) ? 0 : rowSource.hashCode()); return result; }
CsvContext implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + columnNumber; result = prime * result + rowNumber; result = prime * result + lineNumber; result = prime * result + ((rowSource == null) ? 0 : rowSource.hashCode()); return result; } }
CsvContext implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + columnNumber; result = prime * result + rowNumber; result = prime * result + lineNumber; result = prime * result + ((rowSource == null) ? 0 : rowSource.hashCode()); return result; } CsvContext(final int lineNumber, final int rowNumber, final int columnNumber);  CsvContext(final CsvContext c); }
CsvContext implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + columnNumber; result = prime * result + rowNumber; result = prime * result + lineNumber; result = prime * result + ((rowSource == null) ? 0 : rowSource.hashCode()); return result; } CsvContext(final int lineNumber, final int rowNumber, final int columnNumber);  CsvContext(final CsvContext c); int getLineNumber(); void setLineNumber(int lineNumber); int getRowNumber(); void setRowNumber(int rowNumber); int getColumnNumber(); void setColumnNumber(int columnNumber); List<Object> getRowSource(); void setRowSource(List<Object> rowSource); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
CsvContext implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + columnNumber; result = prime * result + rowNumber; result = prime * result + lineNumber; result = prime * result + ((rowSource == null) ? 0 : rowSource.hashCode()); return result; } CsvContext(final int lineNumber, final int rowNumber, final int columnNumber);  CsvContext(final CsvContext c); int getLineNumber(); void setLineNumber(int lineNumber); int getRowNumber(); void setRowNumber(int rowNumber); int getColumnNumber(); void setColumnNumber(int columnNumber); List<Object> getRowSource(); void setRowSource(List<Object> rowSource); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }