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

1234567

/libcore/json/src/test/java/org/json/
H A DJSONObjectTest.java37 JSONObject object = new JSONObject();
38 assertEquals(0, object.length());
40 // bogus (but documented) behaviour: returns null rather than the empty object!
41 assertNull(object.names());
44 assertNull(object.toJSONArray(new JSONArray()));
45 assertEquals("{}", object.toString());
46 assertEquals("{}", object.toString(5));
48 object.get("foo");
53 object.getBoolean("foo");
58 object
[all...]
H A DJSONStringerTest.java41 stringer.object();
77 stringer.object();
156 new JSONStringer().object().endArray();
161 new JSONStringer().object().key("a").key("a");
166 new JSONStringer().object().value(false);
174 new JSONStringer().object().key(null);
182 stringer.object();
192 stringer.object();
222 new JSONStringer().object().key(original).value(false).endObject().toString());
224 new JSONStringer().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.java87 Object object = readFrom.nextValue();
88 if (object instanceof JSONArray) {
89 values = ((JSONArray) object).values;
91 throw JSON.typeMismatch(object, "JSONArray");
286 Object object = get(index);
287 Boolean result = JSON.toBoolean(object);
289 throw JSON.typeMismatch(index, object, "boolean");
307 Object object = opt(index);
308 Boolean result = JSON.toBoolean(object);
320 Object object
[all...]
H A DJSONObject.java69 * named entry from the object but {@code put(name, JSONObject.NULL)} stores an
142 * object in the tokener.
154 Object object = readFrom.nextValue();
155 if (object instanceof JSONObject) {
156 this.nameValuePairs = ((JSONObject) object).nameValuePairs;
158 throw JSON.typeMismatch(object, "JSONObject");
166 * @param json a JSON-encoded string containing an object.
176 * from the given object. Names that aren't present in {@code copyFrom} will
190 * Returns the number of name/value mappings in this object.
200 * @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/include/
H A DScopedBytes.h31 ScopedBytes(JNIEnv* env, jobject object) argument
32 : mEnv(env), mObject(object), mByteArray(NULL), mPtr(NULL)
66 ScopedBytesRO(JNIEnv* env, jobject object) : ScopedBytes<true>(env, object) {} argument
74 ScopedBytesRW(JNIEnv* env, jobject object) : ScopedBytes<false>(env, object) {} argument
/libcore/luni/src/main/java/java/lang/reflect/
H A DField.java227 * Indicates whether or not the specified {@code object} is equal to this
228 * field. To be equal, the specified object must be an instance of
231 * @param object
232 * the object to compare
233 * @return {@code true} if the specified object is equal to this method,
238 public boolean equals(Object object) { argument
239 return object instanceof Field && toString().equals(object.toString());
243 * Returns the value of the field in the specified object. This reproduces
244 * the effect of {@code object
268 get(Object object) argument
295 getBoolean(Object object) argument
323 getByte(Object object) argument
350 getChar(Object object) argument
386 getDouble(Object object) argument
413 getFloat(Object object) argument
440 getInt(Object object) argument
467 getLong(Object object) argument
516 getShort(Object object) argument
586 set(Object object, Object value) argument
619 setBoolean(Object object, boolean value) argument
651 setByte(Object object, byte value) argument
683 setChar(Object object, char value) argument
715 setDouble(Object object, double value) argument
747 setFloat(Object object, float value) argument
779 setInt(Object object, int value) argument
811 setLong(Object object, long value) argument
843 setShort(Object object, short value) argument
[all...]
/libcore/luni/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...]

Completed in 1686 milliseconds

1234567