Home
last modified time | relevance | path

Searched refs:newLimit (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/nio/
DBuffer.java296 public final Buffer limit(int newLimit) { in limit() argument
297 if (newLimit < 0 || newLimit > capacity) { in limit()
298 … throw new IllegalArgumentException("Bad limit (capacity " + capacity + "): " + newLimit); in limit()
301 limit = newLimit; in limit()
302 if (position > newLimit) { in limit()
303 position = newLimit; in limit()
305 if ((mark != UNSET_MARK) && (mark > newLimit)) { in limit()
/libcore/luni/src/main/java/java/text/
DAttributedString.java289 int newLimit = getRunLimit(attribute); in getRunLimit() local
290 if (newLimit < limit) { in getRunLimit()
291 limit = newLimit; in getRunLimit()