Searched refs:index (Results 1 - 25 of 215) sorted by relevance

123456789

/libcore/ojluni/src/main/java/java/text/
H A DParsePosition.java50 * you can use the same <code>ParsePosition</code>, since the index parameter
63 * with each call setting index up for the next one.
65 int index = 0; field in class:ParsePosition
70 * is the index of the character at which parsing will begin; on output, it
71 * is the index of the character following the last character parsed.
76 return index;
82 * @param index the current parse position
84 public void setIndex(int index) { argument
85 this.index = index;
93 ParsePosition(int index) argument
[all...]
H A DCalendarBuilder.java55 public static final int ISO_DAY_OF_WEEK = 1000; // pseudo field index
68 CalendarBuilder set(int index, int value) { argument
69 if (index == ISO_DAY_OF_WEEK) {
70 index = DAY_OF_WEEK;
73 field[index] = nextStamp++;
74 field[MAX_FIELD + index] = value;
75 if (index > maxFieldIndex && index < FIELD_COUNT) {
76 maxFieldIndex = index;
87 boolean isSet(int index) { argument
94 clear(int index) argument
[all...]
/libcore/ojluni/src/main/java/java/beans/
H A DIndexedPropertyChangeEvent.java31 * but contains the index of the property that has changed.
46 private int index; field in class:IndexedPropertyChangeEvent
56 * @param index index of the property element that was changed.
60 int index) {
62 this.index = index;
66 * Gets the index of the property that was changed.
68 * @return The index specifying the property element that was
72 return index;
58 IndexedPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue, int index) argument
[all...]
/libcore/luni/src/main/java/javax/xml/validation/
H A DTypeInfoProvider.java88 * @param index
89 * The index of the attribute. The same index for
94 * If the index is invalid.
109 public abstract TypeInfo getAttributeTypeInfo(int index); argument
130 * @param index
131 * The index of the attribute. The same index for
136 * If the index is invalid.
144 public abstract boolean isIdAttribute(int index); argument
180 isSpecified(int index) argument
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DCompoundEnumeration.java37 private int index = 0; field in class:CompoundEnumeration
44 while (index < enums.length) {
45 if (enums[index] != null && enums[index].hasMoreElements()) {
48 index++;
61 return (E)enums[index].nextElement();
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DAttributesImpl.java102 * @param index The attribute's index (zero-based).
104 * available, or null if the index is out of range.
107 public String getURI (int index)
109 if (index >= 0 && index < length) {
110 return data[index*5];
120 * @param index The attribute's index (zero-based).
122 * none is available, or null if the index i
105 getURI(int index) argument
123 getLocalName(int index) argument
141 getQName(int index) argument
159 getType(int index) argument
176 getValue(int index) argument
413 setAttribute(int index, String uri, String localName, String qName, String type, String value) argument
436 removeAttribute(int index) argument
466 setURI(int index, String uri) argument
486 setLocalName(int index, String localName) argument
506 setQName(int index, String qName) argument
525 setType(int index, String type) argument
544 setValue(int index, String value) argument
598 badIndex(int index) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/reflect/
H A DArray.java162 * @param index the index
168 * @exception ArrayIndexOutOfBoundsException If the specified {@code index}
172 public static Object get(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException { argument
174 return ((Object[]) array)[index];
177 return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE;
180 return Byte.valueOf(((byte[]) array)[index]);
183 return Character.valueOf(((char[]) array)[index]);
186 return Short.valueOf(((short[]) array)[index]);
189 return Integer.valueOf(((int[]) array)[index]);
222 getBoolean(Object array, int index) argument
245 getByte(Object array, int index) argument
268 getChar(Object array, int index) argument
291 getShort(Object array, int index) argument
316 getInt(Object array, int index) argument
345 getLong(Object array, int index) argument
376 getFloat(Object array, int index) argument
409 getDouble(Object array, int index) argument
445 set(Object array, int index, Object value) argument
497 setBoolean(Object array, int index, boolean value) argument
523 setByte(Object array, int index, byte value) argument
559 setChar(Object array, int index, char value) argument
593 setShort(Object array, int index, short value) argument
627 setInt(Object array, int index, int value) argument
659 setLong(Object array, int index, long value) argument
689 setFloat(Object array, int index, float value) argument
717 setDouble(Object array, int index, double value) argument
[all...]
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DAttributes2Impl.java82 public boolean isDeclared (int index) argument
84 if (index < 0 || index >= getLength ())
86 "No attribute at index: " + index);
87 return declared [index];
97 int index = getIndex (uri, localName);
99 if (index < 0)
103 return declared [index];
113 int index
130 isSpecified(int index) argument
263 removeAttribute(int index) argument
288 setDeclared(int index, boolean value) argument
307 setSpecified(int index, boolean value) argument
[all...]
/libcore/luni/src/main/java/org/w3c/dom/
H A DDOMImplementationList.java19 * <code>DOMImplementationList</code> are accessible via an integral index,
26 * Returns the <code>index</code>th item in the collection. If
27 * <code>index</code> is greater than or equal to the number of
30 * @param index Index into the collection.
31 * @return The <code>DOMImplementation</code> at the <code>index</code>
33 * <code>null</code> if that is not a valid index.
35 public DOMImplementation item(int index); argument
H A DNodeList.java20 * index, starting from 0.
25 * Returns the <code>index</code>th item in the collection. If
26 * <code>index</code> is greater than or equal to the number of nodes in
28 * @param index Index into the collection.
29 * @return The node at the <code>index</code>th position in the
31 * index.
33 public Node item(int index); argument
H A DNameList.java20 * integral index, starting from 0.
26 * Returns the <code>index</code>th name item in the collection.
27 * @param index Index into the collection.
28 * @return The name at the <code>index</code>th position in the
30 * the specified index or if the index is out of range.
32 public String getName(int index); argument
35 * Returns the <code>index</code>th namespaceURI item in the collection.
36 * @param index Index into the collection.
37 * @return The namespace URI at the <code>index</cod
41 getNamespaceURI(int index) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DArrayIndexOutOfBoundsException.java31 * illegal index. The index is either negative or greater than or
51 * class with an argument indicating the illegal index.
53 * @param index the illegal index.
55 public ArrayIndexOutOfBoundsException(int index) { argument
56 super("Array index out of range: " + index);
73 public ArrayIndexOutOfBoundsException(int sourceLength, int index) { argument
74 super("length=" + sourceLength + "; index
[all...]
H A DStringIndexOutOfBoundsException.java30 * Thrown by {@code String} methods to indicate that an index
33 * thrown when the index is equal to the size of the string.
65 * class with an argument indicating the illegal index.
67 * @param index the illegal index.
69 public StringIndexOutOfBoundsException(int index) { argument
70 super("String index out of range: " + index);
77 public StringIndexOutOfBoundsException(String s, int index) { argument
78 this(s.length(), index);
85 StringIndexOutOfBoundsException(int sourceLength, int index) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DAbstractSequentialList.java36 * that it implements the "random access" methods (<tt>get(int index)</tt>,
37 * <tt>set(int index, E element)</tt>, <tt>add(int index, E element)</tt> and
38 * <tt>remove(int index)</tt>) on top of the list's list iterator, instead of
45 * <tt>previous</tt> and <tt>index</tt> methods.<p>
57 * <a href="{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/collections/index.html">
81 * indexed element (with <tt>listIterator(index)</tt>). Then, it gets
86 public E get(int index) { argument
88 return listIterator(index).next();
90 throw new IndexOutOfBoundsException("Index: "+index);
113 set(int index, E element) argument
144 add(int index, E element) argument
169 remove(int index) argument
212 addAll(int index, Collection<? extends E> c) argument
252 listIterator(int index) argument
[all...]
/libcore/ojluni/src/main/java/java/util/regex/
H A DPatternSyntaxException.java47 private final int index; field in class:PatternSyntaxException
58 * @param index
59 * The approximate index in the pattern of the error,
60 * or <tt>-1</tt> if the index is not known
62 public PatternSyntaxException(String desc, String regex, int index) { argument
65 this.index = index;
69 * Retrieves the error index.
71 * @return The approximate index in the pattern of the error,
72 * or <tt>-1</tt> if the index i
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONArray.java40 * JSONObject#NULL}. In particular, {@code get} fails if the requested index
201 * Sets the value at {@code index} to {@code value}, null padding this array
203 * index}, it will be replaced.
207 public JSONArray put(int index, boolean value) throws JSONException { argument
208 return put(index, (Boolean) value);
212 * Sets the value at {@code index} to {@code value}, null padding this array
214 * index}, it will be replaced.
220 public JSONArray put(int index, double value) throws JSONException { argument
221 return put(index, (Double) value);
225 * Sets the value at {@code index} t
231 put(int index, int value) argument
242 put(int index, long value) argument
257 put(int index, Object value) argument
273 isNull(int index) argument
285 get(int index) argument
301 opt(int index) argument
312 remove(int index) argument
326 getBoolean(int index) argument
339 optBoolean(int index) argument
347 optBoolean(int index, boolean fallback) argument
360 getDouble(int index) argument
373 optDouble(int index) argument
381 optDouble(int index, double fallback) argument
394 getInt(int index) argument
407 optInt(int index) argument
415 optInt(int index, int fallback) argument
428 getLong(int index) argument
441 optLong(int index) argument
449 optLong(int index, long fallback) argument
461 getString(int index) argument
474 optString(int index) argument
482 optString(int index, String fallback) argument
495 getJSONArray(int index) argument
508 optJSONArray(int index) argument
520 getJSONObject(int index) argument
533 optJSONObject(int index) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatAttributes.java48 public String getURI(int index) { argument
49 if (index < 0 || index >= getLength()) {
52 return getURI(getParserPointer(), getPointer(), index);
55 public String getLocalName(int index) { argument
56 return (index < 0 || index >= getLength())
58 : getLocalName(getParserPointer(), getPointer(), index);
61 public String getQName(int index) { argument
62 return (index <
67 getType(int index) argument
71 getValue(int index) argument
141 getURI(long pointer, long attributePointer, int index) argument
142 getLocalName(long pointer, long attributePointer, int index) argument
143 getQName(long pointer, long attributePointer, int index) argument
144 getValueByIndex(long attributePointer, int index) argument
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DURISyntaxException.java44 private int index; field in class:URISyntaxException
48 * index.
52 * @param index The index at which the parse error occurred,
53 * or {@code -1} if the index is not known
59 * If the error index is less than {@code -1}
61 public URISyntaxException(String input, String reason, int index) { argument
65 if (index < -1)
68 this.index = index;
[all...]
/libcore/ojluni/src/main/java/java/nio/file/
H A DInvalidPathException.java40 private int index; field in class:InvalidPathException
44 * index.
48 * @param index the index at which the error occurred,
49 * or <tt>-1</tt> if the index is not known
55 * if the error index is less than <tt>-1</tt>
57 public InvalidPathException(String input, String reason, int index) { argument
61 if (index < -1)
64 this.index = index;
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DDataTruncation.java54 * @param index The index of the parameter or column value
60 public DataTruncation(int index, boolean parameter, argument
64 this.index = index;
82 * @param index The index of the parameter or column value
93 public DataTruncation(int index, boolean parameter, argument
97 this.index = index;
161 private int index; field in class:DataTruncation
[all...]
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DInvalidPathExceptionTest.java28 int index = 0;
30 InvalidPathException exception = new InvalidPathException(input, reason, index);
31 assertEquals(index, exception.getIndex());
35 // Test the case where index = -1.
36 index = -1;
37 exception = new InvalidPathException(input, reason, index);
38 assertEquals(index, exception.getIndex());
42 // Test the case where index < -1;
43 index = -2;
45 new InvalidPathException(input, reason, index);
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DLocaleSyntaxException.java38 private int index = -1; field in class:LocaleSyntaxException
46 index = errorIndex;
50 return index;
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DLeafNodeImpl.java39 int index; field in class:LeafNodeImpl
46 if (parent == null || index + 1 >= parent.children.size()) {
50 return parent.children.get(index + 1);
58 if (parent == null || index == 0) {
62 return parent.children.get(index - 1);
/libcore/luni/src/main/java/org/xml/sax/
H A DAttributes.java24 * <li>by attribute index;</li>
96 * Look up an attribute's Namespace URI by index.
98 * @param index The attribute index (zero-based).
100 * is available, or null if the index is out of
104 public abstract String getURI (int index);
108 * Look up an attribute's local name by index.
110 * @param index The attribute index (zero-based).
113 * if the index i
103 getURI(int index) argument
115 getLocalName(int index) argument
127 getQName(int index) argument
150 getType(int index) argument
166 getValue(int index) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DCharBufferSpliterator.java41 private int index; // current index, modified on advance/split field in class:CharBufferSpliterator
51 this.index = (origin <= limit) ? origin : limit;
57 int lo = index, mid = (lo + limit) >>> 1;
60 : new CharBufferSpliterator(buffer, lo, index = mid);
68 int i = index;
70 index = hi;
80 if (index >= 0 && index < limit) {
81 action.accept(buffer.getUnchecked(index
[all...]

Completed in 454 milliseconds

123456789