Searched defs:equals (Results 101 - 125 of 171) sorted by relevance

1234567

/libcore/json/src/main/java/org/json/
H A DJSONArray.java618 @Override public boolean equals(Object o) { method in class:JSONArray
619 return o instanceof JSONArray && ((JSONArray) o).values.equals(values);
/libcore/libart/src/main/java/java/lang/reflect/
H A DField.java169 @Override public boolean equals(Object other) { method in class:Field
/libcore/luni/src/main/java/java/lang/
H A DDouble.java214 public boolean equals(Object object) { method in class:Double
H A DFloat.java191 public boolean equals(Object object) { method in class:Float
H A DInteger.java210 public boolean equals(Object o) { method in class:Integer
H A DLong.java197 public boolean equals(Object o) { method in class:Long
/libcore/luni/src/main/java/java/net/
H A DNetworkInterface.java197 if (broadcast.equals(Inet4Address.ANY)) {
227 if (interfaceName.equals(validName)) {
355 public boolean equals(Object obj) { method in class:NetworkInterface
363 // TODO: should the order of the addresses matter (we use List.equals)?
365 name.equals(rhs.name) &&
366 addresses.equals(rhs.addresses);
H A DURL.java163 if (protocol != null && context != null && !protocol.equals(context.protocol)) {
318 * Returns true if this URL equals {@code o}. URLs are equal if they have
322 * <p>Some implementations of URL.equals() resolve host names over the
327 * Set} expect that {@code equals} and {@code hashCode} will return quickly.
345 @Override public boolean equals(Object o) { method in class:URL
355 return streamHandler.equals(this, (URL) o);
423 if (protocol.equals("file")) {
425 } else if (protocol.equals("ftp")) {
427 } else if (protocol.equals("http")) {
434 } else if (protocol.equals("http
[all...]
/libcore/luni/src/main/java/java/nio/
H A DByteBuffer.java279 * equals to {@code other}; a positive value if this is greater
333 public boolean equals(Object other) { method in class:ByteBuffer
H A DCharBuffer.java198 * this equals to {@code otherBuffer}; a positive value if this is
248 public boolean equals(Object other) { method in class:CharBuffer
H A DSelectorImpl.java126 if (!provider().equals(channel.provider())) {
343 public boolean equals(Object object) { method in class:SelectorImpl.UnaddableSet
344 return set.equals(object);
/libcore/luni/src/main/java/java/text/
H A DDateFormatSymbols.java188 public boolean equals(Object object) { method in class:DateFormatSymbols
196 return localPatternChars.equals(rhs.localPatternChars) &&
197 Arrays.equals(ampms, rhs.ampms) &&
198 Arrays.equals(eras, rhs.eras) &&
199 Arrays.equals(months, rhs.months) &&
200 Arrays.equals(shortMonths, rhs.shortMonths) &&
201 Arrays.equals(shortWeekdays, rhs.shortWeekdays) &&
202 Arrays.equals(weekdays, rhs.weekdays) &&
209 if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) {
H A DDecimalFormatSymbols.java171 public boolean equals(Object object) { method in class:DecimalFormatSymbols
179 return currency.equals(obj.currency) &&
180 currencySymbol.equals(obj.currencySymbol) &&
183 exponentSeparator.equals(obj.exponentSeparator) &&
185 infinity.equals(obj.infinity) &&
186 intlCurrencySymbol.equals(obj.intlCurrencySymbol) &&
187 minusSign.equals(obj.minusSign) &&
189 NaN.equals(obj.NaN) &&
192 percent.equals(obj.percent) &&
440 if (value.equals(intlCurrencySymbo
[all...]
H A DMessageFormat.java306 * // result now equals "3.14, 3.1"
309 * // objs now equals {new Double(3.1)}
321 * // result now equals {new String("z")}
469 public boolean equals(Object object) { method in class:MessageFormat
487 return locale.equals(format.locale)
488 && Arrays.equals(strings, format.strings)
489 && Arrays.equals(formats, format.formats);
1094 if (format.equals(NumberFormat.getNumberInstance(locale))) {
1096 } else if (format.equals(NumberFormat.getIntegerInstance(locale))) {
1098 } else if (format.equals(NumberForma
[all...]
/libcore/luni/src/main/java/java/util/
H A DAbstractList.java481 public boolean equals(Object object) { method in class:AbstractList
494 if (!(e1 == null ? e2 == null : e1.equals(e2))) {
519 * @see #equals
546 if (object.equals(it.next())) {
585 if (object.equals(it.previous())) {
686 * returned view will be of zero length if start equals end. Any change that
H A DArrayList.java339 if (object.equals(a[i])) {
358 if (object.equals(a[i])) {
376 if (object.equals(a[i])) {
418 if (object.equals(a[i])) {
608 @Override public boolean equals(Object o) { method in class:ArrayList
625 if (eThis == null ? ethat != null : !eThis.equals(ethat)) {
634 if (eThis == null ? eThat != null : !eThis.equals(eThat)) {
H A DArrays.java47 if (object.equals(element)) {
74 if (object.equals(a[i])) {
92 if (object.equals(a[i])) {
997 * {@code Arrays.equals(a, b)} returns {@code true}, it means
998 * that the return value of {@code Arrays.hashCode(a)} equals {@code Arrays.hashCode(b)}.
1025 * {@code Arrays.equals(a, b)} returns {@code true}, it means
1026 * that the return value of {@code Arrays.hashCode(a)} equals {@code Arrays.hashCode(b)}.
1053 * {@code Arrays.equals(a, b)} returns {@code true}, it means
1054 * that the return value of {@code Arrays.hashCode(a)} equals {@code Arrays.hashCode(b)}.
1081 * {@code Arrays.equals(
1354 public static boolean equals(byte[] array1, byte[] array2) { method in class:Arrays
1380 public static boolean equals(short[] array1, short[] array2) { method in class:Arrays
1406 public static boolean equals(char[] array1, char[] array2) { method in class:Arrays
1432 public static boolean equals(int[] array1, int[] array2) { method in class:Arrays
1458 public static boolean equals(long[] array1, long[] array2) { method in class:Arrays
1486 public static boolean equals(float[] array1, float[] array2) { method in class:Arrays
1515 public static boolean equals(double[] array1, double[] array2) { method in class:Arrays
1542 public static boolean equals(boolean[] array1, boolean[] array2) { method in class:Arrays
1568 public static boolean equals(Object[] array1, Object[] array2) { method in class:Arrays
[all...]
H A DBitSet.java115 @Override public boolean equals(Object o) { method in class:BitSet
H A DDate.java229 public boolean equals(Object object) { method in class:Date
347 * @see #equals
487 if (text.equals("AM")) {
493 } else if (text.equals("PM")) {
507 } else if (text.equals("GMT") || text.equals("UT") || text.equals("UTC")) {
764 if (text.equals("EST")) {
767 if (text.equals("EDT")) {
770 if (text.equals("CS
[all...]
H A DEnumMap.java65 public boolean equals(Object object) { method in class:EnumMap.Entry
73 if (key.equals(enumKey)) {
78 isEqual = enumMap.values[ordinal].equals(theValue);
278 && object.equals(enumMap.values[i])) {
335 isEqual = value.equals(enumValue);
519 if (hasMapping[i] && value.equals(values[i])) {
558 public boolean equals(Object object) { method in class:EnumMap
563 return super.equals(object);
569 return Arrays.equals(hasMapping, enumMap.hasMapping)
570 && Arrays.equals(value
[all...]
H A DGregorianCalendar.java899 @Override public boolean equals(Object object) { method in class:GregorianCalendar
906 return super.equals(object)
H A DVector.java278 * @see java.lang.Object#equals
389 public synchronized boolean equals(Object object) { method in class:Vector
403 if (!(e1 == null ? e2 == null : e1.equals(e2))) {
496 * @see #equals
546 if (object.equals(elementData[i])) {
664 if (object.equals(elementData[i])) {
H A DWeakHashMap.java92 public boolean equals(Object other) { method in class:WeakHashMap.Entry
98 return (key == null ? key == entry.getKey() : key.equals(entry
101 .equals(entry.getValue()));
324 return object.equals(entry);
459 if (key.equals(entry.get())) {
482 if (key.equals(entry.get())) {
516 && value.equals(entry.value)) {
595 while (entry != null && !key.equals(entry.get())) {
673 while (entry != null && !key.equals(entry.get())) {
/libcore/luni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListSet.java39 * {@code equals}, and {@code toArray} are <em>not</em> guaranteed
175 * contains an element {@code e} such that {@code o.equals(e)}.
190 * the set contains no element {@code e2} such that {@code e.equals(e2)}.
208 * {@code o.equals(e)}, if this set contains such an element.
257 * equals method works properly across different implementations of the
263 public boolean equals(Object o) { method in class:ConcurrentSkipListSet
H A DCopyOnWriteArrayList.java240 @Override public boolean equals(Object other) { method in class:CopyOnWriteArrayList
243 || Arrays.equals(elements, ((CopyOnWriteArrayList<?>) other).elements);
433 if (o.equals(data[i])) {
450 if (o.equals(data[i])) {

Completed in 247 milliseconds

1234567