/libcore/luni/src/main/java/java/math/ |
D | Logical.java | 82 static BigInteger and(BigInteger val, BigInteger that) { in and() argument 83 if (that.sign == 0 || val.sign == 0) { in and() 86 if (that.equals(BigInteger.MINUS_ONE)){ in and() 90 return that; in and() 94 if (that.sign > 0) { in and() 95 return andPositive(val, that); in and() 97 return andDiffSigns(val, that); in and() 100 if (that.sign > 0) { in and() 101 return andDiffSigns(that, val); in and() 102 } else if (val.numberLength > that.numberLength) { in and() [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | LongBuffer.java | 648 LongBuffer that = (LongBuffer) ob; in equals() 649 if (this.remaining() != that.remaining()) in equals() 652 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 653 if (!equals(this.get(i), that.get(j))) in equals() 688 public int compareTo(LongBuffer that) { in compareTo() argument 689 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 690 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 691 int cmp = compare(this.get(i), that.get(j)); in compareTo() 695 return this.remaining() - that.remaining(); in compareTo()
|
D | ShortBuffer.java | 649 ShortBuffer that = (ShortBuffer) ob; in equals() 650 if (this.remaining() != that.remaining()) in equals() 653 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 654 if (!equals(this.get(i), that.get(j))) in equals() 689 public int compareTo(ShortBuffer that) { in compareTo() argument 690 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 691 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 692 int cmp = compare(this.get(i), that.get(j)); in compareTo() 696 return this.remaining() - that.remaining(); in compareTo()
|
D | IntBuffer.java | 650 IntBuffer that = (IntBuffer) ob; in equals() 651 if (this.remaining() != that.remaining()) in equals() 654 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 655 if (!equals(this.get(i), that.get(j))) in equals() 690 public int compareTo(IntBuffer that) { in compareTo() argument 691 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 692 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 693 int cmp = compare(this.get(i), that.get(j)); in compareTo() 697 return this.remaining() - that.remaining(); in compareTo()
|
D | DoubleBuffer.java | 647 DoubleBuffer that = (DoubleBuffer) ob; in equals() 648 if (this.remaining() != that.remaining()) in equals() 651 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 652 if (!equals(this.get(i), that.get(j))) in equals() 687 public int compareTo(DoubleBuffer that) { in compareTo() argument 688 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 689 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 692 int cmp = Double.compare(this.get(i), that.get(j)); in compareTo() 696 return this.remaining() - that.remaining(); in compareTo()
|
D | FloatBuffer.java | 648 FloatBuffer that = (FloatBuffer) ob; in equals() 649 if (this.remaining() != that.remaining()) in equals() 652 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 653 if (!equals(this.get(i), that.get(j))) in equals() 688 public int compareTo(FloatBuffer that) { in compareTo() argument 689 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 690 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 691 int cmp = compare(this.get(i), that.get(j)); in compareTo() 695 return this.remaining() - that.remaining(); in compareTo()
|
D | CharBuffer.java | 831 CharBuffer that = (CharBuffer) ob; in equals() 832 if (this.remaining() != that.remaining()) in equals() 835 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 836 if (!equals(this.get(i), that.get(j))) in equals() 871 public int compareTo(CharBuffer that) { in compareTo() argument 872 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 873 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 874 int cmp = compare(this.get(i), that.get(j)); in compareTo() 878 return this.remaining() - that.remaining(); in compareTo()
|
D | ByteBuffer.java | 831 ByteBuffer that = (ByteBuffer) ob; in equals() 832 if (this.remaining() != that.remaining()) in equals() 835 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 836 if (!equals(this.get(i), that.get(j))) in equals() 871 public int compareTo(ByteBuffer that) { in compareTo() argument 872 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 873 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 874 int cmp = compare(this.get(i), that.get(j)); in compareTo() 878 return this.remaining() - that.remaining(); in compareTo()
|
/libcore/ojluni/src/main/java/java/text/ |
D | StringCharacterIterator.java | 245 StringCharacterIterator that = (StringCharacterIterator) obj; in equals() 247 if (hashCode() != that.hashCode()) in equals() 249 if (!text.equals(that.text)) in equals() 251 if (pos != that.pos || begin != that.begin || end != that.end) in equals()
|
D | DateFormatSymbols.java | 729 DateFormatSymbols that = (DateFormatSymbols) obj; in equals() 730 if (!(Arrays.equals(eras, that.eras) in equals() 731 && Arrays.equals(months, that.months) in equals() 732 && Arrays.equals(shortMonths, that.shortMonths) in equals() 733 && Arrays.equals(tinyMonths, that.tinyMonths) in equals() 734 && Arrays.equals(weekdays, that.weekdays) in equals() 735 && Arrays.equals(shortWeekdays, that.shortWeekdays) in equals() 736 && Arrays.equals(tinyWeekdays, that.tinyWeekdays) in equals() 737 && Arrays.equals(standAloneMonths, that.standAloneMonths) in equals() 738 && Arrays.equals(shortStandAloneMonths, that.shortStandAloneMonths) in equals() [all …]
|
D | Collator.java | 453 public boolean equals(Object that) in equals() argument 455 if (this == that) { in equals() 458 if (that == null) { in equals() 461 if (getClass() != that.getClass()) { in equals() 464 Collator other = (Collator) that; in equals()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | CalendarDate.java | 388 CalendarDate that = (CalendarDate) obj; in equals() local 389 if (isNormalized() != that.isNormalized()) { in equals() 393 boolean thatHasZone = that.zoneinfo != null; in equals() 397 if (hasZone && !zoneinfo.equals(that.zoneinfo)) { in equals() 400 return (getEra() == that.getEra() in equals() 401 && year == that.year in equals() 402 && month == that.month in equals() 403 && dayOfMonth == that.dayOfMonth in equals() 404 && hours == that.hours in equals() 405 && minutes == that.minutes in equals() [all …]
|
D | Era.java | 128 Era that = (Era) o; in equals() local 129 return name.equals(that.name) in equals() 130 && abbr.equals(that.abbr) in equals() 131 && since == that.since in equals() 132 && localTime == that.localTime; in equals()
|
/libcore/ojluni/src/main/java/java/security/ |
D | CodeSigner.java | 131 CodeSigner that = (CodeSigner)obj; in equals() local 133 if (this == that) { in equals() 136 Timestamp thatTimestamp = that.getTimestamp(); in equals() 147 return signerCertPath.equals(that.getSignerCertPath()); in equals()
|
D | Timestamp.java | 128 Timestamp that = (Timestamp)obj; in equals() local 130 if (this == that) { in equals() 133 return (timestamp.equals(that.getTimestamp()) && in equals() 134 signerCertPath.equals(that.getSignerCertPath())); in equals()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodTypeForm.java | 151 MethodTypeForm that = this.basicType.form(); in MethodTypeForm() local 152 assert(this != that); in MethodTypeForm() 153 this.primCounts = that.primCounts; in MethodTypeForm() 154 this.argCounts = that.argCounts; in MethodTypeForm() 155 this.argToSlotTable = that.argToSlotTable; in MethodTypeForm() 156 this.slotToArgTable = that.slotToArgTable; in MethodTypeForm() 180 MethodTypeForm that = MethodType.genericMethodType(ptypeCount).form(); in MethodTypeForm() local 181 assert(this != that); in MethodTypeForm() 182 slotToArgTab = that.slotToArgTable; in MethodTypeForm() 183 argToSlotTab = that.argToSlotTable; in MethodTypeForm()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SimpleTimeZone.java | 900 SimpleTimeZone that = (SimpleTimeZone) obj; in equals() local 902 return getID().equals(that.getID()) && in equals() 903 hasSameRules(that); in equals() 920 SimpleTimeZone that = (SimpleTimeZone) other; in hasSameRules() local 921 return rawOffset == that.rawOffset && in hasSameRules() 922 useDaylight == that.useDaylight && in hasSameRules() 925 || (dstSavings == that.dstSavings && in hasSameRules() 926 startMode == that.startMode && in hasSameRules() 927 startMonth == that.startMonth && in hasSameRules() 928 startDay == that.startDay && in hasSameRules() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | Locales.java | 68 Locales that = (Locales) obj; in equals() local 69 return uncategorizedLocale.equals(that.uncategorizedLocale) in equals() 70 && displayLocale.equals(that.displayLocale) in equals() 71 && formatLocale.equals(that.formatLocale); in equals()
|
/libcore/luni/src/main/java/android/system/ |
D | StructTimespec.java | 62 StructTimespec that = (StructTimespec) o; in equals() 64 if (tv_sec != that.tv_sec) return false; in equals() 65 return tv_nsec == that.tv_nsec; in equals()
|
/libcore/ojluni/ |
D | NOTICE | 309 General Public Licenses are designed to make sure that you have the freedom to 311 that you receive source code or can get it if you want it, that you can change 312 the software or use pieces of it in new free programs; and that you know you 315 To protect your rights, we need to make restrictions that forbid anyone to deny 321 a fee, you must give the recipients all the rights that you have. You must 322 make sure that they, too, receive or can get the source code. And you must 329 Also, for each author's protection and ours, we want to make certain that 330 everyone understands that there is no warranty for this free software. If the 332 know that what they have is not the original, so that any problems introduced 336 wish to avoid the danger that redistributors of a free program will [all …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | AccessDescription.java | 93 AccessDescription that = (AccessDescription)obj; in equals() local 95 if (this == that) { in equals() 98 return (accessMethod.equals((Object)that.getAccessMethod()) && in equals() 99 accessLocation.equals(that.getAccessLocation())); in equals()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | ParameterizedTypeImpl.java | 87 ParameterizedType that = (ParameterizedType) o; in equals() local 88 return Objects.equals(getRawType(), that.getRawType()) && in equals() 89 Objects.equals(getOwnerType(), that.getOwnerType()) && in equals() 90 Arrays.equals(args.getResolvedTypes(), that.getActualTypeArguments()); in equals()
|
D | WildcardTypeImpl.java | 48 WildcardType that = (WildcardType) o; in equals() local 49 return Arrays.equals(getLowerBounds(), that.getLowerBounds()) && in equals() 50 Arrays.equals(getUpperBounds(), that.getUpperBounds()); in equals()
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetSocketAddress.java | 116 InetSocketAddressHolder that = (InetSocketAddressHolder)obj; in equals() 119 sameIP = addr.equals(that.addr); in equals() 121 sameIP = (that.addr == null) && in equals() 122 hostname.equalsIgnoreCase(that.hostname); in equals() 124 sameIP = (that.addr == null) && (that.hostname == null); in equals() 125 return sameIP && (port == that.port); in equals()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SNIServerName.java | 127 SNIServerName that = (SNIServerName)other; in equals() local 128 return (this.type == that.type) && in equals() 129 Arrays.equals(this.encoded, that.encoded); in equals()
|