@Test public void testToString() { Position p1 = new Position(1, 0); String s = p1.toString(); assertNotNull(s); assertTrue(s.length() > 0); }
@Override public String toString() { return "L" + (m_line + 1) + "C" + (m_column + 1); }
Position implements Comparable<Position> { @Override public String toString() { return "L" + (m_line + 1) + "C" + (m_column + 1); } }
Position implements Comparable<Position> { @Override public String toString() { return "L" + (m_line + 1) + "C" + (m_column + 1); } Position(int line, int column); }
Position implements Comparable<Position> { @Override public String toString() { return "L" + (m_line + 1) + "C" + (m_column + 1); } Position(int line, int column); int getLine(); int getColumn(); @Override String toString(); @Override int compareTo(Position p); @Override int hashCode(); @Override boolean equals(Object o); Position moveBy(int offset); }
Position implements Comparable<Position> { @Override public String toString() { return "L" + (m_line + 1) + "C" + (m_column + 1); } Position(int line, int column); int getLine(); int getColumn(); @Override String toString(); @Override int compareTo(Position p); @Override int hashCode(); @Override boolean equals(Object o); Position moveBy(int offset); static final Position ZERO; static final Nowhere NOWHERE; }