< prev index next >

src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java

Print this page
rev 12617 : [mq]: 8134356-gt-lt-in-code

*** 78,97 **** this.isAdjusting = isAdjusting; } /** * Returns the index of the first row whose selection may have changed. ! * {@code getFirstIndex() &lt;= getLastIndex()} * * @return the first row whose selection value may have changed, * where zero is the first row */ public int getFirstIndex() { return firstIndex; } /** * Returns the index of the last row whose selection may have changed. ! * {@code getLastIndex() &gt;= getFirstIndex()} * * @return the last row whose selection value may have changed, * where zero is the first row */ public int getLastIndex() { return lastIndex; } --- 78,97 ---- this.isAdjusting = isAdjusting; } /** * Returns the index of the first row whose selection may have changed. ! * {@code getFirstIndex() <= getLastIndex()} * * @return the first row whose selection value may have changed, * where zero is the first row */ public int getFirstIndex() { return firstIndex; } /** * Returns the index of the last row whose selection may have changed. ! * {@code getLastIndex() >= getFirstIndex()} * * @return the last row whose selection value may have changed, * where zero is the first row */ public int getLastIndex() { return lastIndex; }
< prev index next >