Searched refs:object (Results 1 - 25 of 171) sorted by relevance

1234567

/libcore/json/src/test/java/org/json/
H A DJSONObjectTest.java39 JSONObject object = new JSONObject();
40 assertEquals(0, object.length());
42 // bogus (but documented) behaviour: returns null rather than the empty object!
43 assertNull(object.names());
46 assertNull(object.toJSONArray(new JSONArray()));
47 assertEquals("{}", object.toString());
48 assertEquals("{}", object.toString(5));
50 object.get("foo");
55 object.getBoolean("foo");
60 object
[all...]
/libcore/luni/src/main/java/java/security/
H A DGuard.java30 * @param object
31 * the object to be protected by this {@code Guard}.
35 public void checkGuard(Object object) throws SecurityException; argument
H A DGuardedObject.java24 * {@code GuardedObject} controls access to an object, by checking all requests
25 * for the object with a {@code Guard}.
31 private final Object object; field in class:GuardedObject
39 * @param object
45 public GuardedObject(Object object, Guard guard) { argument
46 this.object = object;
55 * @return the guarded object.
57 * if access is not granted to the guarded object.
61 guard.checkGuard(object);
[all...]
/libcore/luni/src/main/java/java/util/
H A DCollection.java48 * Attempts to add {@code object} to the contents of this
51 * After this method finishes successfully it is guaranteed that the object
58 * objects, but it has to specify this in the documentation. If the object
62 * If a collection does not yet contain an object that is to be added and
63 * adding the object fails, this method <i>must</i> throw an appropriate
68 * @param object
69 * the object to add.
76 * if the class of the object is inappropriate for this
79 * if the object cannot be added to this {@code Collection}.
83 public boolean add(E object); argument
137 contains(Object object) argument
171 equals(Object object) argument
220 remove(Object object) argument
[all...]
H A DComparator.java59 * are equal. In order to be equal, {@code object} must represent the same object
65 * @param object
72 public boolean equals(Object object); argument
H A DSet.java29 * Adds the specified object to this set. The set is not modified if it
30 * already contains the object.
32 * @param object
33 * the object to add.
38 * when the class of the object is inappropriate for this set.
40 * when the object cannot be added to this set.
42 public boolean add(E object); argument
54 * when the class of an object is inappropriate for this set.
56 * when an object cannot be added to this set.
71 * Searches this set for the specified object
78 contains(Object object) argument
102 equals(Object object) argument
141 remove(Object object) argument
[all...]
H A DList.java29 * Inserts the specified object into this {@code List} at the specified location.
30 * The object is inserted before the current element at the specified
31 * location. If the location is equal to the size of this {@code List}, the object
38 * @param object
39 * the object to add.
43 * if the class of the object is inappropriate for this
46 * if the object cannot be added to this {@code List}.
50 public void add(int location, E object); argument
53 * Adds the specified object at the end of this {@code List}.
55 * @param object
66 add(E object) argument
128 contains(Object object) argument
153 equals(Object object) argument
183 indexOf(Object object) argument
212 lastIndexOf(Object object) argument
261 remove(Object object) argument
306 set(int location, E object) argument
[all...]
H A DListIterator.java28 * Inserts the specified object into the list between {@code next} and
29 * {@code previous}. The object inserted will be the previous object.
31 * @param object
32 * the object to insert.
36 * if the class of the object is inappropriate for the list.
38 * if the object cannot be added to the list.
40 void add(E object); argument
60 * Returns the next object in the iteration.
62 * @return the next object
131 set(E object) argument
[all...]
H A DAbstractSet.java37 * Compares the specified object to this Set and returns true if they are
38 * equal. The object must be an instance of Set and contain the same
41 * @param object
42 * the object to compare with this set.
43 * @return {@code true} if the specified object is equal to this set,
48 public boolean equals(Object object) { argument
49 if (this == object) {
52 if (object instanceof Set) {
53 Set<?> s = (Set<?>) object;
H A DMapEntry.java51 public boolean equals(Object object) { argument
52 if (this == object) {
55 if (object instanceof Map.Entry) {
56 Map.Entry<?, ?> entry = (Map.Entry<?, ?>) object;
79 public V setValue(V object) { argument
81 value = object;
H A DAbstractList.java97 public void add(E object) { argument
100 AbstractList.this.add(pos + 1, object);
140 public void set(E object) { argument
143 AbstractList.this.set(lastPosition, object);
185 public void add(E object) { argument
186 iterator.add(object);
231 public void set(E object) { argument
232 iterator.set(object);
244 public void add(int location, E object) { argument
247 fullList.add(location + offset, object);
345 set(int location, E object) argument
403 add(int location, E object) argument
424 add(E object) argument
481 equals(Object object) argument
542 indexOf(Object object) argument
581 lastIndexOf(Object object) argument
680 set(int location, E object) argument
[all...]
H A DMap.java38 * Compares the specified object to this {@code Map.Entry} and returns if they
39 * are equal. To be equal, the object must be an instance of {@code Map.Entry} and have the
42 * @param object
48 public boolean equals(Object object); argument
77 * @param object
79 * @return object the replaced value of this entry.
81 public V setValue(V object); argument
125 * specified object is a {@code Map} and both {@code Map}s contain the same mappings.
127 * @param object
134 public boolean equals(Object object); argument
[all...]
H A DStack.java83 * Pushes the specified object onto the top of the stack.
85 * @param object
86 * The object to be added on top of the stack.
87 * @return the object argument.
91 public E push(E object) { argument
92 addElement(object);
93 return object;
97 * Returns the index of the first occurrence of the object, starting from
100 * @return the index of the first occurrence of the object, assuming that
101 * the topmost object o
[all...]
H A DVector.java124 * Adds the specified object into this vector at the specified location. The
125 * object is inserted before any element with the same or a higher index
127 * vector, the object is added at the end.
131 * @param object
132 * the object to insert in this vector.
139 public void add(int location, E object) { argument
140 insertElementAt(object, location);
144 * Adds the specified object at the end of this vector.
146 * @param object
147 * the object t
151 add(E object) argument
220 addElement(E object) argument
281 contains(Object object) argument
389 equals(Object object) argument
522 indexOf(Object object) argument
543 indexOf(Object object, int location) argument
576 insertElementAt(E object, int location) argument
639 lastIndexOf(Object object) argument
660 lastIndexOf(Object object, int location) argument
724 remove(Object object) argument
772 removeElement(Object object) argument
873 set(int location, E object) argument
894 setElementAt(E object, int location) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DTime.java50 public int getIndex(java.lang.Object object) {
52 if (((java.util.Date) object).getTime() < JAN_01_2050) {
59 public Object getObjectToEncode(Object object) {
60 return object;
/libcore/json/src/main/java/org/json/
H A DJSONArray.java92 Object object = readFrom.nextValue();
93 if (object instanceof JSONArray) {
94 values = ((JSONArray) object).values;
96 throw JSON.typeMismatch(object, "JSONArray");
316 Object object = get(index);
317 Boolean result = JSON.toBoolean(object);
319 throw JSON.typeMismatch(index, object, "boolean");
337 Object object = opt(index);
338 Boolean result = JSON.toBoolean(object);
350 Object object
[all...]
H A DJSONObject.java70 * named entry from the object but {@code put(name, JSONObject.NULL)} stores an
143 * object in the tokener.
155 Object object = readFrom.nextValue();
156 if (object instanceof JSONObject) {
157 this.nameValuePairs = ((JSONObject) object).nameValuePairs;
159 throw JSON.typeMismatch(object, "JSONObject");
167 * @param json a JSON-encoded string containing an object.
177 * from the given object. Names that aren't present in {@code copyFrom} will
191 * Returns the number of name/value mappings in this object.
201 * @return this object
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1ValueCollection.java50 * Provides an object's values to be encoded
55 * @param - an object to be encoded
56 * @return - a collection of object's values to be encoded
58 public Collection<?> getValues(Object object) { argument
59 return (Collection<?>) object;
H A DASN1TypeCollection.java66 * @param object a component's default value
69 protected final void setDefault(Object object, int index) { argument
71 DEFAULT[index] = object;
75 * Provides an object's values to be encoded
82 * @param object an object to be encoded
83 * @param values an array to store an object's values to be encoded
85 protected void getValues(Object object, Object[] values) { argument
/libcore/luni/src/main/java/java/text/
H A DParsePosition.java40 * Compares the specified object to this {@code ParsePosition} and indicates
41 * if they are equal. In order to be equal, {@code object} must be an
45 * @param object
46 * the object to compare with this object.
47 * @return {@code true} if the specified object is equal to this
52 public boolean equals(Object object) { argument
53 if (!(object instanceof ParsePosition)) {
56 ParsePosition pos = (ParsePosition) object;
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
H A DDirectoryString.java57 public int getIndex(java.lang.Object object) {
62 public Object getObjectToEncode(Object object) {
63 return /*(String)*/ object;
/libcore/libdvm/src/main/java/java/lang/reflect/
H A DField.java224 * Indicates whether or not the specified {@code object} is equal to this
225 * field. To be equal, the specified object must be an instance of
228 * @param object
229 * the object to compare
230 * @return {@code true} if the specified object is equal to this method,
235 public boolean equals(Object object) { argument
236 return object instanceof Field && toString().equals(object.toString());
240 * Returns the value of the field in the specified object. This reproduces
241 * the effect of {@code object
265 get(Object object) argument
292 getBoolean(Object object) argument
320 getByte(Object object) argument
347 getChar(Object object) argument
383 getDouble(Object object) argument
410 getFloat(Object object) argument
437 getInt(Object object) argument
464 getLong(Object object) argument
513 getShort(Object object) argument
583 set(Object object, Object value) argument
616 setBoolean(Object object, boolean value) argument
648 setByte(Object object, byte value) argument
680 setChar(Object object, char value) argument
712 setDouble(Object object, double value) argument
744 setFloat(Object object, float value) argument
776 setInt(Object object, int value) argument
808 setLong(Object object, long value) argument
840 setShort(Object object, short value) argument
[all...]
/libcore/libdvm/src/main/java/java/lang/
H A DDaemons.java179 Object object = reference.get();
183 finalizingObject = object;
187 object.finalize();
207 Object object = waitForObject();
208 if (object == null) {
212 boolean finalized = waitForFinalization(object);
214 finalizerTimedOut(object);
222 Object object = FinalizerDaemon.INSTANCE.finalizingObject;
223 if (object != null) {
224 return object;
257 waitForFinalization(Object object) argument
262 finalizerTimedOut(Object object) argument
[all...]
/libcore/libart/src/main/java/java/lang/reflect/
H A DAccessibleObject.java45 * checks are omitted. This allows privileged code, such as Java object
46 * serialization, object inspectors, and debuggers to have complete access to
58 * If true, object is accessible, bypassing normal access checks
63 * Returns true if this object is accessible without access checks.
82 for (AccessibleObject object : objects) {
83 object.flag = flag;
H A DField.java253 * Returns the value of the field in the specified object. This reproduces
254 * the effect of {@code object.fieldName}
259 * <p>If this field is static, the object argument is ignored.
260 * Otherwise, if the object is null, a NullPointerException is thrown. If
261 * the object is not an instance of the declaring class of the method, an
264 * <p>If this Field object is enforcing access control (see AccessibleObject)
268 * @param object
269 * the object to access
272 * if the object is {@code null} and the field is non-static
274 * if the object i
278 get(Object object) argument
303 getBoolean(Object object) argument
329 getByte(Object object) argument
355 getChar(Object object) argument
381 getDouble(Object object) argument
407 getFloat(Object object) argument
433 getInt(Object object) argument
459 getLong(Object object) argument
485 getShort(Object object) argument
517 set(Object object, Object value) argument
548 setBoolean(Object object, boolean value) argument
578 setByte(Object object, byte value) argument
608 setChar(Object object, char value) argument
638 setDouble(Object object, double value) argument
668 setFloat(Object object, float value) argument
698 setInt(Object object, int value) argument
728 setLong(Object object, long value) argument
758 setShort(Object object, short value) argument
[all...]

Completed in 908 milliseconds

1234567