Searched refs:previous (Results 1 - 25 of 42) sorted by relevance

12

/libcore/ojluni/src/main/java/java/text/
H A DCharacterIterator.java56 * The methods previous() and next() are used for iteration. They return DONE if
76 * for(char c = iter.last(); c != CharacterIterator.DONE; c = iter.previous()) {
94 * c = iter.previous()) {
156 public char previous(); method in interface:CharacterIterator
H A DCollationElementIterator.java134 * previous() updates the pointer first and then returns the element. This
136 * then call previous(), or call previous() and then call next()), you'll get
144 * Get the previous collation element in the string. <p>This iterator iterates
148 * collation element [or ordering priority] of the previous character in the
154 * iterating (i.e., call next() and then call previous(), or call previous()
159 public int previous() { method in class:CollationElementIterator
160 return icuIterator.previous();
234 * @param order a collation order returned by previous o
[all...]
H A DBreakIterator.java147 * for (int start = boundary.previous();
149 * end = start, start = boundary.previous()) {
172 * int start = boundary.previous();
183 * int start = boundary.previous();
248 * DONE is returned by previous(), next(), next(int), preceding(int)
284 * does nothing. Negative values move to previous boundaries
312 * @return The character index of the previous text boundary or
316 public abstract int previous(); method in class:BreakIterator
357 pos = previous();
391 * recently returned by next(), next(int), previous(), firs
[all...]
H A DIcuIteratorWrapper.java288 * equivalent to repeatedly calling next() or previous().
313 public int previous() { method in class:IcuIteratorWrapper
314 return wrapped.previous();
348 // position specified by the caller, we can just use previous()
H A DStringCharacterIterator.java189 * Implements CharacterIterator.previous() for String.
190 * @see CharacterIterator#previous
192 public char previous() method in class:StringCharacterIterator
/libcore/ojluni/src/main/java/java/util/
H A DListIterator.java35 * to {@code previous()} and the element that would be
46 * {@link #previous()}.
77 * or intermixed with calls to {@link #previous} to go back and forth.
78 * (Note that alternating calls to {@code next} and {@code previous}
89 * returns {@code true} if {@link #previous} would return an element
98 * Returns the previous element in the list and moves the cursor
102 * to {@code next} and {@code previous} will return the same
105 * @return the previous element in the list
106 * @throws NoSuchElementException if the iteration has no previous
109 E previous(); method in interface:ListIterator
[all...]
H A DAbstractList.java206 if (it.previous()==null)
210 if (o.equals(it.previous()))
338 * previous. Reset to -1 if this element is deleted by a call
399 public E previous() { method in class:AbstractList.ListItr
403 E previous = get(i);
405 return previous;
585 * response to the {@code next}, {@code remove}, {@code previous},
716 public E previous() {
718 return i.previous();
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DTextImpl.java145 * Tries to remove this node using itself and the previous node as context.
147 * If the previous node exists and is a text node, this node's text will be
162 Node previous = getPreviousSibling();
163 if (previous == null || previous.getNodeType() != Node.TEXT_NODE) {
167 TextImpl previousText = (TextImpl) previous;
H A DNodeImpl.java703 UserData previous = data == null
706 return previous != null ? previous.value : null;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DStringCharacterIteratorTest.java304 * @tests java.text.StringCharacterIterator.previous()
308 assertEquals(CharacterIterator.DONE, fixture.previous());
319 assertEquals('e', fixture.previous());
321 assertEquals('r', fixture.previous());
323 assertEquals('u', fixture.previous());
325 assertEquals('t', fixture.previous());
327 assertEquals('x', fixture.previous());
329 assertEquals('i', fixture.previous());
331 assertEquals('f', fixture.previous());
333 assertEquals(CharacterIterator.DONE, fixture.previous());
[all...]
H A DCollationElementIteratorTest.java74 order = iterator.previous();
78 order = iterator.previous();
101 order = iterator.previous();
105 order = iterator.previous();
H A DBreakIteratorTest.java158 assertEquals(-1, iterator.previous());
160 assertEquals(-1, iterator.previous());
162 assertEquals(TEXT.length() - 1, iterator.previous());
H A DAttributedStringTest.java102 public char previous() { method in class:AttributedStringTest.testAttributedCharacterIterator
H A DAttributedCharacterIteratorTest.java133 * @tests java.text.AttributedCharacterIterator#previous()
140 assertEquals("Wrong first", 'g', it.previous());
/libcore/luni/src/main/java/libcore/util/
H A DBasicLruCache.java79 * @return the previous value mapped by {@code key}. Although that entry is
89 V previous = map.put(key, value);
91 return previous;
/libcore/support/src/test/java/tests/support/
H A DSupport_ListTest.java57 "ListTest - c) add with index failed--affected previous elements",
65 assertTrue("ListTest - c) set failed--affected previous elements", list
75 "ListTest - c) remove with index failed--affected previous elements",
94 "ListTest - e) addAll with index failed--affected previous elements",
165 assertTrue("list iterator previous(): " + i, li.previous() == list
181 li.previous();
185 assertTrue("list iterator previous() exception", exception);
197 Object previous = li.previous();
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldListIteratorTest.java80 public Object previous() { method in class:OldListIteratorTest.Mock_ListIterator
138 l.previous();
148 assertTrue(objArray[i].equals(l.previous()));
152 l.previous();
/libcore/dex/src/main/java/com/android/dex/
H A DTableOfContents.java118 Section previous = null;
134 if (previous != null && previous.off > section.off) {
135 throw new DexException("Map is unsorted at " + previous + ", " + section);
138 previous = section;
/libcore/libart/src/main/java/java/lang/
H A DCaseMapper.java86 char previous = s.charAt(index - 1);
87 if (!(Character.isLowerCase(previous) || Character.isUpperCase(previous) || Character.isTitleCase(previous))) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractSequentialListTest.java91 public Object previous() { method in class:AbstractSequentialListTest.Mock_unsupportedListIterator
130 public E previous() { method in class:AbstractSequentialListTest.Mock_ListIterator
333 public Object previous() {
448 public Object previous() {
521 public Object previous() {
/libcore/ojluni/src/main/java/java/util/prefs/
H A DPreferences.java250 PreferencesFactory previous = factory;
252 return previous;
/libcore/luni/src/main/java/java/math/
H A DConversion.java95 int previous = currentChar;
100 int delta = charsPerInt - previous + currentChar;
218 int previous = currentChar;
222 int delta = 9 - previous + currentChar;
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java229 assertEquals("e", i.previous());
234 assertEquals("d", i.previous());
239 assertEquals("c", i.previous());
244 assertEquals("b", i.previous());
249 assertEquals("a", i.previous());
255 i.previous();
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetTest.java326 target.previous();
331 target.previous();
336 target.previous();
H A DOldConnectionTest.java81 rs.previous();
126 rs.previous();
149 rs.previous();
994 rs.previous();
1020 rs.previous();
1970 rs.previous();
2011 rs.previous();

Completed in 371 milliseconds

12