/dalvik/libcore/json/src/main/java/org/json/ |
H A D | JSONStringer.java | 29 * JSONObject object = ... 30 * String json = object.toString();</pre> 34 * <li>The stringer must have exactly one top-level array or object. 37 * #object} must have a matching call to {@link #endObject}. 63 /** The output data, containing at most one top-level array or object. */ 86 * An object with no keys or values requires no separators or newlines 92 * An object whose most recent element is a key. The next element must 98 * An object with at least one name/value pair requires a comma and 152 * Begins encoding a new object. Each call to this method must be paired 157 public JSONStringer object() throw method in class:JSONStringer [all...] |
/dalvik/libcore/json/src/test/java/org/json/ |
H A D | ParsingTest.java | 161 assertParsed(object("foo", 5), "{\"foo\": 5}"); 162 assertParsed(object("foo", 5), "{foo: 5}"); 163 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\": 5, \"bar\": \"baz\"}"); 164 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\": 5; \"bar\": \"baz\"}"); 165 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\"= 5; \"bar\"= \"baz\"}"); 166 assertParsed(object("foo", 5, "bar", "baz"), "{\"foo\"=> 5; \"bar\"=> \"baz\"}"); 167 assertParsed(object("foo", object(), "bar", array()), "{\"foo\"=> {}; \"bar\"=> []}"); 168 assertParsed(object("foo", object("fo 221 private JSONObject object(Object... keyValuePairs) throws JSONException { method in class:ParsingTest [all...] |
/dalvik/libcore/luni/src/main/java/java/lang/ |
H A D | Double.java | 64 * The {@link Class} object that represents the primitive type {@code 109 * Compares this object to the specified double object to determine their 117 * @param object 118 * the double object to compare this object to. 120 * value of {@code object}; 0 if the value of this double and the 121 * value of {@code object} are equal; a positive value if the value 122 * of this double is greater than the value of {@code object}. 124 * if {@code object} i 128 compareTo(Double object) argument 190 equals(Object object) argument [all...] |
H A D | Float.java | 61 * The {@link Class} object that represents the primitive type {@code 115 * Compares this object to the specified float object to determine their 123 * @param object 124 * the float object to compare this object to. 126 * value of {@code object}; 0 if the value of this float and the 127 * value of {@code object} are equal; a positive value if the value 128 * of this float is greater than the value of {@code object}. 132 public int compareTo(Float object) { argument 160 equals(Object object) argument [all...] |
H A D | VMThread.java | 76 * given object. 78 native boolean holdsLock(Object object); argument
|
H A D | Integer.java | 126 * The {@link Class} object that represents the primitive type {@code int}. 164 * Compares this object to the specified integer object to determine their 167 * @param object 168 * the integer object to compare this object to. 170 * value of {@code object}; 0 if the value of this integer and the 171 * value of {@code object} are equal; a positive value if the value 172 * of this integer is greater than the value of {@code object}. 176 public int compareTo(Integer object) { argument [all...] |
H A D | Long.java | 56 * The {@link Class} object that represents the primitive type {@code long}. 110 * Compares this object to the specified long object to determine their 113 * @param object 114 * the long object to compare this object to. 116 * of {@code object}; 0 if the value of this long and the value of 117 * {@code object} are equal; a positive value if the value of this 118 * long is greater than the value of {@code object}. 122 public int compareTo(Long object) { argument [all...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | HugeEnumSet.java | 197 public boolean contains(Object object) { argument 198 if (object == null || !isValidType(object.getClass())) { 203 int ordinal = ((E) object).ordinal(); 237 public boolean equals(Object object) { argument 238 if (object == null) { 241 if (!isValidType(object.getClass())) { 242 return super.equals(object); 244 return Arrays.equals(bits, ((HugeEnumSet<?>) object).bits); 253 public boolean remove(Object object) { argument [all...] |
H A D | List.java | 29 * 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 D | MiniEnumSet.java | 147 public boolean contains(Object object) { argument 148 if (object == null || !isValidType(object.getClass())) { 153 Enum<E> element = (Enum<E>) object; 222 public boolean remove(Object object) { argument 223 if (object == null || !isValidType(object.getClass())) { 228 Enum<E> element = (Enum<E>) object; 241 public boolean equals(Object object) { argument 242 if (!(object instanceo [all...] |
H A D | TreeSet.java | 96 * Adds the specified object to this {@code TreeSet}. 98 * @param object 99 * the object to add. 101 * the object, {@code false} otherwise. 103 * when the object cannot be compared with the elements in this 106 * when the object is null and the comparator cannot handle 110 public boolean add(E object) { argument 111 return backingMap.put(object, Boolean.TRUE) == null; 122 * when an object in the collection cannot be compared with the 125 * when an object i 192 contains(Object object) argument 284 remove(Object object) argument [all...] |
H A D | AbstractList.java | 101 public void add(E object) { argument 104 AbstractList.this.add(pos + 1, object); 144 public void set(E object) { argument 147 AbstractList.this.set(lastPosition, object); 190 public void add(E object) { argument 191 iterator.add(object); 236 public void set(E object) { argument 237 iterator.set(object); 250 public void add(int location, E object) { argument 253 fullList.add(location + offset, object); 351 set(int location, E object) argument 410 add(int location, E object) argument 431 add(E object) argument 488 equals(Object object) argument 549 indexOf(Object object) argument 588 lastIndexOf(Object object) argument 687 set(int location, E object) argument [all...] |
H A D | ArrayList.java | 113 * Adds the specified object at the end of this {@code ArrayList}. 115 * @param object 116 * the object to add. 119 @Override public boolean add(E object) { argument 129 a[s] = object; 136 * Inserts the specified object into this {@code ArrayList} at the specified 137 * location. The object is inserted before any previous element at the 139 * {@code ArrayList}, the object is added at the end. 142 * the index at which to insert the object. 143 * @param object 148 add(int index, E object) argument 337 contains(Object object) argument 356 indexOf(Object object) argument 375 lastIndexOf(Object object) argument 416 remove(Object object) argument 478 set(int index, E object) argument [all...] |
H A D | Arrays.java | 55 public boolean contains(Object object) { argument 56 if (object != null) { 58 if (object.equals(element)) { 82 public int indexOf(Object object) { argument 83 if (object != null) { 85 if (object.equals(a[i])) { 100 public int lastIndexOf(Object object) { argument 101 if (object != null) { 103 if (object.equals(a[i])) { 118 public E set(int location, E object) { argument [all...] |
H A D | Date.java | 220 * Compares the specified object to this {@code Date} and returns if they are equal. 221 * To be equal, the object must be an instance of {@code Date} and have the same millisecond 224 * @param object 225 * the object to compare with this object. 226 * @return {@code true} if the specified object is equal to this {@code Date}, {@code false} 232 public boolean equals(Object object) { argument 233 return (object == this) || (object instanceof Date) 234 && (milliseconds == ((Date) object) [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
H A D | ProxyTest.java | 320 assertTrue("Did not detect non proxy object ", aborted); 381 public TestProxyHandler(Object object) { argument 382 proxied = object; 385 public Object invoke(Object object, Method method, Object[] args) argument
|
/dalvik/libcore/luni-kernel/src/main/java/java/lang/reflect/ |
H A D | Constructor.java | 93 * the class this constructor object belongs to 274 * Indicates whether or not the specified {@code object} is equal to this 275 * constructor. To be equal, the specified object must be an instance 279 * @param object 280 * the object to compare 282 * @return {@code true} if the specified object is equal to this 290 public boolean equals(Object object) { argument 291 return object instanceof Constructor && toString().equals(object.toString()); 398 * invoking the constructor represented by this {@code Constructor} object [all...] |
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
H A D | DerOutputStream.java | 34 public DerOutputStream(ASN1Type asn1, Object object) { argument 37 content = object;
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | Cache.java | 34 * and provides the means to determine whether it contains the object built on 45 * determine whether object to be generated is in the cache or not. 48 * object generated from the encoded form with such prefix and we should 49 * generate (decode) the object. If predetermination is successful, 52 * So to speed up the object generation process this caching mechanism provides 56 * it is possible to predetermine whether object has already been 63 * form should be provided to make the final answer: whether object has 65 * If it is so - the cached object is returned from the cache, 66 * if not - new object should be generated and saved in the cache.<br> 98 // This information includes: hash of the array, encoded form of the object, 255 put(long hash, byte[] encoding, Object object) argument [all...] |
/dalvik/libcore/text/src/main/java/java/text/ |
H A D | ChoiceFormat.java | 201 * Compares the specified object with this {@code ChoiceFormat}. The object 205 * @param object 206 * the object to compare with this instance. 207 * @return {@code true} if the specified object is equal to this instance; 212 public boolean equals(Object object) { argument 213 if (this == object) { 216 if (!(object instanceof ChoiceFormat)) { 219 ChoiceFormat choice = (ChoiceFormat) object;
|
H A D | DateFormatSymbols.java | 60 * {@code DateFormatSymbols} object, feel free to modify the date/time 173 * Compares this object with the specified object and indicates if they are 176 * @param object 177 * the object to compare with this object. 178 * @return {@code true} if {@code object} is an instance of 180 * object, {@code false} otherwise. 184 public boolean equals(Object object) { argument 185 if (this == object) { [all...] |
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
H A D | Support_Format.java | 36 protected void t_FormatWithField(int count, Format format, Object object, argument 40 format.format(object, buffer, pos); 59 protected void t_Format(int count, Object object, Format format, argument 61 // System.out.println(format.format(object)); 62 Vector<FieldContainer> results = findFields(format.formatToCharacterIterator(object)); 65 + format.format(object), compare(results, expectedResults));
|
/dalvik/libcore/xml/src/main/java/org/apache/xml/utils/ |
H A D | QName.java | 32 * Class to represent a qualified name: "The name of an internal XSLT object, 40 * is used as the name of the object. The default namespace is not used for 578 * the passed object is a string and it matches 599 * the passed object is a QName and it matches 604 public boolean equals(Object object) argument 607 if (object == this) 610 if (object instanceof QName) { 611 QName qname = (QName) object; 625 * Given a string, create and return a QName object 630 * @return a QName object [all...] |
/dalvik/libcore/xml/src/main/java/org/apache/xpath/objects/ |
H A D | XRTreeFrag.java | 34 * This class represents an XPath result tree fragment object, and is capable of 76 * Return a java object that's closest to the representation 79 * @return The object that this class wraps 81 public Object object() method in class:XRTreeFrag 86 return super.object(); 116 * In general, detach should only be called once on the object. 147 * Cast result object to a number. 161 * Cast result object to a boolean. This always returns true for a RTreeFrag 174 * Cast result object to an XMLString. 187 * Cast result object t [all...] |
/dalvik/libcore/archive/src/main/java/java/util/jar/ |
H A D | Attributes.java | 232 * @param object 236 public boolean equals(Object object) { argument 237 if (object == null || object.getClass() != getClass() 238 || object.hashCode() != hashCode()) { 242 return Util.asciiEqualsIgnoreCase(name, ((Name) object).name); 449 * @return the hash code of this object. 462 * the object with which this {@code Attributes} is compared.
|