/libcore/ojluni/src/main/java/java/nio/ |
D | IntBuffer.java | 842 IntBuffer that = (IntBuffer)ob; in equals() 843 if (this.remaining() != that.remaining()) in equals() 846 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 847 if (!equals(this.get(i), that.get(j))) in equals() 882 public int compareTo(IntBuffer that) { in compareTo() argument 883 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 884 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 885 int cmp = compare(this.get(i), that.get(j)); in compareTo() 889 return this.remaining() - that.remaining(); in compareTo() 923 public int mismatch(IntBuffer that) { in mismatch() argument [all …]
|
D | ShortBuffer.java | 837 ShortBuffer that = (ShortBuffer)ob; in equals() 838 if (this.remaining() != that.remaining()) in equals() 841 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 842 if (!equals(this.get(i), that.get(j))) in equals() 877 public int compareTo(ShortBuffer that) { in compareTo() argument 878 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 879 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 880 int cmp = compare(this.get(i), that.get(j)); in compareTo() 884 return this.remaining() - that.remaining(); in compareTo() 918 public int mismatch(ShortBuffer that) { in mismatch() argument [all …]
|
D | LongBuffer.java | 836 LongBuffer that = (LongBuffer)ob; in equals() 837 if (this.remaining() != that.remaining()) in equals() 840 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 841 if (!equals(this.get(i), that.get(j))) in equals() 876 public int compareTo(LongBuffer that) { in compareTo() argument 877 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 878 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 879 int cmp = compare(this.get(i), that.get(j)); in compareTo() 883 return this.remaining() - that.remaining(); in compareTo() 917 public int mismatch(LongBuffer that) { in mismatch() argument [all …]
|
D | StringCharBuffer.java | 153 CharBuffer that = (CharBuffer)ob; in equals() 156 int thatPos = that.position(); in equals() 157 int thatRem = that.limit() - thatPos; in equals() 161 that, thatPos, in equals() 165 public int compareTo(CharBuffer that) { in compareTo() argument 168 int thatPos = that.position(); in compareTo() 169 int thatRem = that.limit() - thatPos; in compareTo() 174 that, thatPos, in compareTo() 177 return Character.compare(this.get(thisPos + i), that.get(thatPos + i)); in compareTo()
|
D | FloatBuffer.java | 843 FloatBuffer that = (FloatBuffer)ob; in equals() 844 if (this.remaining() != that.remaining()) in equals() 847 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 848 if (!equals(this.get(i), that.get(j))) in equals() 883 public int compareTo(FloatBuffer that) { in compareTo() argument 884 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 885 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 886 int cmp = compare(this.get(i), that.get(j)); in compareTo() 890 return this.remaining() - that.remaining(); in compareTo() 926 public int mismatch(FloatBuffer that) { in mismatch() argument [all …]
|
D | DoubleBuffer.java | 843 DoubleBuffer that = (DoubleBuffer)ob; in equals() 844 if (this.remaining() != that.remaining()) in equals() 847 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 848 if (!equals(this.get(i), that.get(j))) in equals() 880 public int compareTo(DoubleBuffer that) { in compareTo() argument 881 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 882 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 883 int cmp = compare(this.get(i), that.get(j)); in compareTo() 887 return this.remaining() - that.remaining(); in compareTo() 923 public int mismatch(DoubleBuffer that) { in mismatch() argument [all …]
|
D | CharBuffer.java | 1050 CharBuffer that = (CharBuffer)ob; in equals() 1051 if (this.remaining() != that.remaining()) in equals() 1054 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 1055 if (!equals(this.get(i), that.get(j))) in equals() 1090 public int compareTo(CharBuffer that) { in compareTo() argument 1091 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 1092 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 1093 int cmp = compare(this.get(i), that.get(j)); in compareTo() 1097 return this.remaining() - that.remaining(); in compareTo() 1131 public int mismatch(CharBuffer that) { in mismatch() argument [all …]
|
D | ByteBuffer.java | 1018 ByteBuffer that = (ByteBuffer)ob; in equals() 1019 if (this.remaining() != that.remaining()) in equals() 1022 for (int i = this.limit() - 1, j = that.limit() - 1; i >= p; i--, j--) in equals() 1023 if (!equals(this.get(i), that.get(j))) in equals() 1058 public int compareTo(ByteBuffer that) { in compareTo() argument 1059 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 1060 for (int i = this.position(), j = that.position(); i < n; i++, j++) { in compareTo() 1061 int cmp = compare(this.get(i), that.get(j)); in compareTo() 1065 return this.remaining() - that.remaining(); in compareTo() 1099 public int mismatch(ByteBuffer that) { in mismatch() argument [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 797 DateFormatSymbols that = (DateFormatSymbols) obj; in equals() 799 if (!(Arrays.equals(eras, that.eras) in equals() 800 && Arrays.equals(months, that.months) in equals() 801 && Arrays.equals(shortMonths, that.shortMonths) in equals() 802 && Arrays.equals(tinyMonths, that.tinyMonths) in equals() 803 && Arrays.equals(weekdays, that.weekdays) in equals() 804 && Arrays.equals(shortWeekdays, that.shortWeekdays) in equals() 805 && Arrays.equals(tinyWeekdays, that.tinyWeekdays) in equals() 806 && Arrays.equals(standAloneMonths, that.standAloneMonths) in equals() 807 && Arrays.equals(shortStandAloneMonths, that.shortStandAloneMonths) in equals() [all …]
|
D | StringCharacterIterator.java | 243 if (!(obj instanceof StringCharacterIterator that)) in equals() 246 if (hashCode() != that.hashCode()) in equals() 248 if (!text.equals(that.text)) in equals() 250 if (pos != that.pos || begin != that.begin || end != that.end) in equals()
|
D | Collator.java | 459 public boolean equals(Object that) in equals() argument 461 if (this == that) { in equals() 464 if (that == null) { in equals() 467 if (getClass() != that.getClass()) { in equals() 470 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 | 124 Era that = (Era) o; in equals() local 125 return name.equals(that.name) in equals() 126 && abbr.equals(that.abbr) in equals() 127 && since == that.since in equals() 128 && localTime == that.localTime; in equals()
|
/libcore/ojluni/src/main/ |
D | LICENSE | 31 General Public Licenses are designed to make sure that you have the freedom to 33 that you receive source code or can get it if you want it, that you can change 34 the software or use pieces of it in new free programs; and that you know you 37 To protect your rights, we need to make restrictions that forbid anyone to deny 43 a fee, you must give the recipients all the rights that you have. You must 44 make sure that they, too, receive or can get the source code. And you must 51 Also, for each author's protection and ours, we want to make certain that 52 everyone understands that there is no warranty for this free software. If the 54 know that what they have is not the original, so that any problems introduced 58 wish to avoid the danger that redistributors of a free program will [all …]
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodTypeForm.java | 211 MethodTypeForm that = this.basicType.form(); in MethodTypeForm() local 212 assert(this != that); in MethodTypeForm() 213 this.primCounts = that.primCounts; in MethodTypeForm() 214 this.argCounts = that.argCounts; in MethodTypeForm() 215 this.argToSlotTable = that.argToSlotTable; in MethodTypeForm() 216 this.slotToArgTable = that.slotToArgTable; in MethodTypeForm() 239 MethodTypeForm that = MethodType.genericMethodType(ptypeCount).form(); in MethodTypeForm() local 240 assert(this != that); in MethodTypeForm() 241 slotToArgTab = that.slotToArgTable; in MethodTypeForm() 242 argToSlotTab = that.argToSlotTable; in MethodTypeForm()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SimpleTimeZone.java | 881 return obj instanceof SimpleTimeZone that in equals() 882 && getID().equals(that.getID()) in equals() 883 && hasSameRules(that); in equals() 897 return other instanceof SimpleTimeZone that in hasSameRules() 898 && rawOffset == that.rawOffset in hasSameRules() 899 && useDaylight == that.useDaylight in hasSameRules() 902 (dstSavings == that.dstSavings in hasSameRules() 903 && startMode == that.startMode in hasSameRules() 904 && startMonth == that.startMonth in hasSameRules() 905 && startDay == that.startDay in hasSameRules() [all …]
|
/libcore/ojluni/src/test/java/util/regex/ |
D | PatternStreamTest.java | 298 public int compareTo(MatchResultHolder that) { in compareTo() argument 299 int c = that.mr.group().compareTo(this.mr.group()); in compareTo() 303 c = Integer.compare(that.mr.start(), this.mr.start()); in compareTo() 307 c = Integer.compare(that.mr.end(), this.mr.end()); in compareTo() 311 c = Integer.compare(that.mr.groupCount(), this.mr.groupCount()); in compareTo() 316 c = that.mr.group(g).compareTo(this.mr.group(g)); in compareTo() 320 c = Integer.compare(that.mr.start(g), this.mr.start(g)); in compareTo() 324 c = Integer.compare(that.mr.end(g), this.mr.end(g)); in compareTo() 332 public boolean equals(Object that) { in equals() argument 333 if (this == that) return true; in equals() [all …]
|
/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/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/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/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()
|
D | StructTimeval.java | 70 StructTimeval that = (StructTimeval) o; in equals() local 71 return tv_sec == that.tv_sec && in equals() 72 tv_usec == that.tv_usec; in equals()
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetSocketAddress.java | 125 InetSocketAddressHolder that = (InetSocketAddressHolder)obj; in equals() 128 sameIP = addr.equals(that.addr); in equals() 130 sameIP = (that.addr == null) && in equals() 131 hostname.equalsIgnoreCase(that.hostname); in equals() 133 sameIP = (that.addr == null) && (that.hostname == null); in equals() 134 return sameIP && (port == that.port); in equals()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | ParameterizedTypeImpl.java | 88 ParameterizedType that = (ParameterizedType) o; in equals() local 89 return Objects.equals(getRawType(), that.getRawType()) && in equals() 90 Objects.equals(getOwnerType(), that.getOwnerType()) && in equals() 91 Arrays.equals(args.getResolvedTypes(), that.getActualTypeArguments()); in equals()
|