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

12345678

/libcore/luni/src/main/java/java/beans/
H A DIndexedPropertyChangeEvent.java28 private final int index; field in class:IndexedPropertyChangeEvent
32 * index.
47 * @param index
48 * the index of the property.
51 Object oldValue, Object newValue, int index) {
53 this.index = index;
57 * Returns the index of the property that was changed in this event.
60 return index;
50 IndexedPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue, int index) argument
/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/luni/src/main/java/java/io/
H A DSerializationHandleMap.java55 int index = findIndex(key, keys);
56 keys[index] = key;
57 values[index] = value;
63 int index = findIndex(key, keys);
64 if (keys[index] == key) {
65 return values[index];
71 * Returns the index where the key is found at, or the index of the next
76 int index = getModuloHash(key, length);
77 int last = (index
[all...]
/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/luni/src/main/java/java/lang/reflect/
H A DArray.java61 * Returns the element of the array at the specified index. Equivalent to {@code array[index]}.
68 * if {@code index < 0 || index >= array.length}
70 public static Object get(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException { argument
72 return ((Object[]) array)[index];
75 return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE;
78 return Byte.valueOf(((byte[]) array)[index]);
81 return Character.valueOf(((char[]) array)[index]);
84 return Short.valueOf(((short[]) array)[index]);
114 getBoolean(Object array, int index) argument
131 getByte(Object array, int index) argument
148 getChar(Object array, int index) argument
166 getDouble(Object array, int index) argument
196 getFloat(Object array, int index) argument
224 getInt(Object array, int index) argument
278 getLong(Object array, int index) argument
304 getShort(Object array, int index) argument
394 set(Object array, int index, Object value) argument
438 setBoolean(Object array, int index, boolean value) argument
456 setByte(Object array, int index, byte value) argument
484 setChar(Object array, int index, char value) argument
510 setDouble(Object array, int index, double value) argument
528 setFloat(Object array, int index, float value) argument
548 setInt(Object array, int index, int value) argument
572 setLong(Object array, int index, long value) argument
594 setShort(Object array, int index, short 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/java/lang/
H A DArrayIndexOutOfBoundsException.java38 * {@code index}.
40 * @param index
41 * the invalid index.
43 public ArrayIndexOutOfBoundsException(int index) { argument
44 super("index=" + index);
62 public ArrayIndexOutOfBoundsException(int sourceLength, int index) { argument
63 super("length=" + sourceLength + "; index=" + index);
H A DStringIndexOutOfBoundsException.java38 * {@code index}.
40 * @param index
41 * the index which is out of bounds.
43 public StringIndexOutOfBoundsException(int index) { argument
44 super("String index out of range: " + index);
62 public StringIndexOutOfBoundsException(String s, int index) { argument
63 this(s.length(), index);
70 public StringIndexOutOfBoundsException(int sourceLength, int index) { argument
71 super("length=" + sourceLength + "; index
[all...]
H A DCharSequence.java35 * Returns the character at {@code index}.
36 * @throws IndexOutOfBoundsException if {@code index < 0} or {@code index >= length()}.
38 public char charAt(int index); argument
41 * Returns a {@code CharSequence} from the {@code start} index (inclusive)
42 * to the {@code end} index (exclusive) of this sequence.
46 * is, the index of the first character that is included in the
50 * the index of the first character after those that are included
H A DThreadLocal.java57 int index = hash & values.mask;
58 if (this.reference == table[index]) {
59 return (T) table[index + 1];
267 int index = clean;
270 index = next(index)) {
271 Object k = table[index];
283 table[index] = TOMBSTONE;
284 table[index + 1] = null;
290 // Point cursor to next index
530 next(int index) argument
[all...]
H A DStringBuffer.java312 * the inclusive start index.
314 * the exclusive end index.
345 public synchronized char charAt(int index) { argument
346 return super.charAt(index);
350 public synchronized int codePointAt(int index) { argument
351 return super.codePointAt(index);
355 public synchronized int codePointBefore(int index) { argument
356 return super.codePointBefore(index);
414 * end}, {@code index < 0}, {@code end - start > buffer.length -
415 * index}
438 insert(int index, char ch) argument
455 insert(int index, boolean b) argument
471 insert(int index, int i) argument
487 insert(int index, long l) argument
503 insert(int index, double d) argument
519 insert(int index, float f) argument
539 insert(int index, Object obj) argument
557 insert(int index, String string) argument
575 insert(int index, char[] chars) argument
600 insert(int index, char[] chars, int start, int length) argument
621 insert(int index, CharSequence s) argument
649 insert(int index, CharSequence s, int start, int end) argument
661 offsetByCodePoints(int index, int codePointOffset) argument
697 setCharAt(int index, char ch) 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...]
H A DDOMStringList.java19 * <code>DOMStringList</code> are accessible via an integral index, starting
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
29 * @param index Index into the collection.
30 * @return The <code>DOMString</code> at the <code>index</code>th
32 * that is not a valid index.
34 public String item(int index); argument
/libcore/luni/src/main/java/java/net/
H A DURISyntaxException.java30 private int index; field in class:URISyntaxException
35 * index at which the error occurred.
41 * @param index
47 * if the value for {@code index} is lesser than {@code -1}.
49 public URISyntaxException(String input, String reason, int index) { argument
58 if (index < -1) {
59 throw new IllegalArgumentException("Bad index: " + index);
63 this.index = index;
[all...]
/libcore/luni/src/main/java/java/util/regex/
H A DPatternSyntaxException.java25 * expression, and the index at which the error occurred.
47 * Holds the index around which the error occured, or -1, in case it is
50 private int index = -1; field in class:PatternSyntaxException
54 * error index.
62 * @param index
63 * the character index around which the error occurred, or -1 if
64 * the index is not known.
66 public PatternSyntaxException(String description, String pattern, int index) { argument
69 this.index = index;
[all...]
/libcore/luni/src/main/java/java/text/
H A DParsePosition.java22 * index can be set to the position where the error occurred without having to
30 * Constructs a new {@code ParsePosition} with the specified index.
32 * @param index
33 * the index to begin parsing.
35 public ParsePosition(int index) { argument
36 currentPosition = index;
42 * instance of {@code ParsePosition} and it must have the same index and
43 * error index.
62 * Returns the index at which the parse could not continue.
64 * @return the index o
90 setErrorIndex(int index) argument
100 setIndex(int index) argument
[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/luni/src/main/java/java/security/cert/
H A DCertPathValidatorException.java27 * path instance that failed the validation and the index of the failed
40 * the index of the certificate.
42 private int index = -1; field in class:CertPathValidatorException
46 * message , cause, certification path and certificate index in the
55 * @param index
56 * the index of the failed certificate.
58 * if {@code certPath} is {@code null} and index is not {@code
61 * if {@code certPath} is not {@code null} and index is not
65 CertPath certPath, int index) {
67 // check certPath and index parameter
64 CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index) argument
[all...]
/libcore/luni/src/main/java/java/sql/
H A DDataTruncation.java32 private int index = 0; field in class:DataTruncation
56 * @param index
70 public DataTruncation(int index, boolean parameter, boolean read, argument
73 this.index = index;
85 * @param index
103 public DataTruncation(int index, boolean parameter, boolean read, argument
107 this.index = index;
125 * Gets the index o
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1TypeCollection.java29 * @see <a href="http://asn1.elibel.tm.fr/en/standards/index.htm">ASN.1</a>
56 * @param index an index of a component
58 protected final void setOptional(int index) { argument
59 OPTIONAL[index] = true;
67 * @param index an index of a component
69 protected final void setDefault(Object object, int index) { argument
70 OPTIONAL[index] = true;
71 DEFAULT[index]
[all...]
/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...]

Completed in 489 milliseconds

12345678