/libcore/luni/src/test/java/libcore/java/security/ |
H A D | PrincipalTest.java | 68 public boolean equals(Object other) { argument 69 if (!(other instanceof PrincipalWithEqualityByName)) { 72 return this.name.equals(((PrincipalWithEqualityByName) other).getName());
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
H A D | RC2ParameterSpec.java | 141 RC2ParameterSpec other = (RC2ParameterSpec) obj; 143 return ((effectiveKeyBits == other.effectiveKeyBits) && 144 java.util.Arrays.equals(iv, other.iv));
|
/libcore/support/src/test/java/libcore/tlswire/util/ |
H A D | TlsProtocolVersion.java | 88 TlsProtocolVersion other = (TlsProtocolVersion) obj; 89 if (major != other.major) { 92 if (minor != other.minor) {
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | ValueRange.java | 44 * and/or other materials provided with the distribution. 376 * Only objects of type {@code ValueRange} are compared, other types return false. 379 * @return true if this is equal to the other range 387 ValueRange other = (ValueRange) obj; 388 return minSmallest == other.minSmallest && minLargest == other.minLargest && 389 maxSmallest == other.maxSmallest && maxLargest == other.maxLargest;
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixUserPrincipals.java | 90 User other = (User)obj; 91 if ((this.id != other.id) || 92 (this.isGroup != other.isGroup)) { 96 if (this.id == -1 && other.id == -1) 97 return this.name.equals(other.name);
|
H A D | UnixPath.java | 397 byte[] other = toUnixPath(obj).path; 398 if (other.length > 0 && other[0] == '/') 400 byte[] result = resolve(path, other); 404 UnixPath resolve(byte[] other) { argument 405 return resolve(new UnixPath(getFileSystem(), other)); 410 UnixPath other = toUnixPath(obj); 411 if (other.equals(this)) 415 if (this.isAbsolute() != other.isAbsolute()) 416 throw new IllegalArgumentException("'other' i 608 startsWith(Path other) argument 659 endsWith(Path other) argument 716 compareTo(Path other) argument [all...] |
/libcore/json/src/test/java/org/json/ |
H A D | JSONArrayTest.java | 103 JSONArray other = new JSONArray(); 104 other.put(true); 105 other.put(false); 106 other.put(true); 107 other.put(false); 108 assertTrue(array.equals(other)); 109 other.put(true); 110 assertFalse(array.equals(other)); 112 other = new JSONArray(); 113 other [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | DateFormat.java | 103 * There are other static factory methods available. 759 DateFormat other = (DateFormat) obj; 760 return (// calendar.equivalentTo(other.calendar) // THIS API DOESN'T EXIST YET! 761 calendar.getFirstDayOfWeek() == other.calendar.getFirstDayOfWeek() && 762 calendar.getMinimalDaysInFirstWeek() == other.calendar.getMinimalDaysInFirstWeek() && 763 calendar.isLenient() == other.calendar.isLenient() && 764 calendar.getTimeZone().equals(other.calendar.getTimeZone()) && 765 numberFormat.equals(other.numberFormat)); 773 DateFormat other = (DateFormat) super.clone(); 774 other [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | MonthDay.java | 44 * and/or other materials provided with the distribution. 332 * All other {@code ChronoField} instances will return false. 356 * or for some other reason, an exception is thrown. 361 * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. 389 * or for some other reason, an exception is thrown. 394 * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. 419 * or for some other reason, an exception is thrown. 424 * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. 669 * @param other the other mont 673 compareTo(MonthDay other) argument 687 isAfter(MonthDay other) argument 697 isBefore(MonthDay other) argument [all...] |
H A D | Clock.java | 44 * and/or other materials provided with the distribution. 107 * This abstract class must be implemented with care to ensure other classes operate correctly. 421 * @return true if this is equal to the other clock 526 FixedClock other = (FixedClock) obj; 527 return instant.equals(other.instant) && zone.equals(other.zone); 576 OffsetClock other = (OffsetClock) obj; 577 return baseClock.equals(other.baseClock) && offset.equals(other.offset); 634 TickClock other [all...] |
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | BaseLocale.java | 114 BaseLocale other = (BaseLocale)obj; 115 return language == other.language 116 && script == other.script 117 && region == other.region 118 && variant == other.variant; 257 public int compareTo(Key other) { argument 258 int res = LocaleUtils.caseIgnoreCompare(this.lang, other.lang); 260 res = LocaleUtils.caseIgnoreCompare(this.scrt, other.scrt); 262 res = LocaleUtils.caseIgnoreCompare(this.regn, other.regn); 264 res = this.vart.compareTo(other [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | DistributionPointName.java | 202 DistributionPointName other = (DistributionPointName)obj; 204 return Objects.equals(this.fullName, other.fullName) && 205 Objects.equals(this.relativeName, other.relativeName);
|
H A D | EDIPartyName.java | 171 public boolean equals(Object other) { argument 172 if (!(other instanceof EDIPartyName)) 174 String otherAssigner = ((EDIPartyName)other).assigner; 182 String otherParty = ((EDIPartyName)other).party;
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | MockSimplePeriod.java | 42 * and/or other materials provided with the distribution. 165 MockSimplePeriod other = (MockSimplePeriod) obj; 166 return this.amount == other.amount && 167 this.unit.equals(other.unit);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
H A D | MockSimplePeriod.java | 42 * and/or other materials provided with the distribution. 165 MockSimplePeriod other = (MockSimplePeriod) obj; 166 return this.amount == other.amount && 167 this.unit.equals(other.unit);
|
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CertPath.java | 61 * transmission to other parties. Preferably, these encodings should be 74 * {@code CertificateFactory} or they can be returned by other classes, 98 * other encodings are supported. 174 * @param other the object to test for equality with this certification path 178 public boolean equals(Object other) { argument 179 if (this == other) 182 if (! (other instanceof CertPath)) 185 CertPath otherCP = (CertPath) other;
|
H A D | Certificate.java | 96 * object. If the {@code other} object is an 101 * @param other the object to test for equality with this certificate. 105 public boolean equals(Object other) { argument 106 if (this == other) { 109 if (!(other instanceof Certificate)) { 114 byte[] otherCert = X509CertImpl.getEncodedInternal((Certificate)other);
|
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | CryptoPermissions.java | 55 CryptoPermissions getMinimum(CryptoPermissions other) { return null; } argument
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | SNIHostName.java | 212 * @param other 213 * the other server name object to compare with. 214 * @return true if, and only if, the {@code other} is considered 218 public boolean equals(Object other) { argument 219 if (this == other) { 223 if (other instanceof SNIHostName) { 224 return hostname.equalsIgnoreCase(((SNIHostName)other).hostname);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | ChronoLocalDate.java | 44 * and/or other materials provided with the distribution. 148 * ISO-8601 calendar system (or the related Julian-Gregorian). Passing around dates in other 174 * Some calendar systems have weeks of other than seven days, such as the French Revolutionary. 199 * and confines it to the UI layer. This approach is in keeping with other localization 213 * In any other part of the system, where a date must be manipulated in a calendar system 214 * other than ISO, the use case will generally specify the calendar system to use. 231 * This interface must be implemented with care to ensure other classes operate correctly. 301 * The era and other fields in {@link ChronoField} are defined by the chronology. 605 * {@code ChronoPeriod} API allows the period to be represented using other units. 699 * @param other th 703 compareTo(ChronoLocalDate other) argument 725 isAfter(ChronoLocalDate other) argument 743 isBefore(ChronoLocalDate other) argument 761 isEqual(ChronoLocalDate other) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
H A D | DoubleBufferTest.java | 184 DoubleBuffer other = DoubleBuffer.allocate(buf.capacity()); 185 loadTestData1(other); 186 assertEquals(0, buf.compareTo(other)); 187 assertEquals(0, other.compareTo(buf)); 189 assertTrue(buf.compareTo(other) > 0); 190 assertTrue(other.compareTo(buf) < 0); 191 other.position(2); 192 assertTrue(buf.compareTo(other) < 0); 193 assertTrue(other.compareTo(buf) > 0); 195 other 649 assertContentEquals(DoubleBuffer buf, DoubleBuffer other) argument [all...] |
H A D | FloatBufferTest.java | 174 FloatBuffer other = FloatBuffer.allocate(buf.capacity()); 175 loadTestData1(other); 176 assertEquals(0, buf.compareTo(other)); 177 assertEquals(0, other.compareTo(buf)); 179 assertTrue(buf.compareTo(other) > 0); 180 assertTrue(other.compareTo(buf) < 0); 181 other.position(2); 182 assertTrue(buf.compareTo(other) < 0); 183 assertTrue(other.compareTo(buf) > 0); 185 other 659 assertContentEquals(FloatBuffer buf, FloatBuffer other) argument [all...] |
H A D | IntBufferTest.java | 166 IntBuffer other = IntBuffer.allocate(buf.capacity()); 167 loadTestData1(other); 168 assertEquals(0, buf.compareTo(other)); 169 assertEquals(0, other.compareTo(buf)); 171 assertTrue(buf.compareTo(other) > 0); 172 assertTrue(other.compareTo(buf) < 0); 173 other.position(2); 174 assertTrue(buf.compareTo(other) < 0); 175 assertTrue(other.compareTo(buf) > 0); 177 other 635 assertContentEquals(IntBuffer buf, IntBuffer other) argument [all...] |
H A D | LongBufferTest.java | 166 LongBuffer other = LongBuffer.allocate(buf.capacity()); 167 loadTestData1(other); 168 assertEquals(0, buf.compareTo(other)); 169 assertEquals(0, other.compareTo(buf)); 171 assertTrue(buf.compareTo(other) > 0); 172 assertTrue(other.compareTo(buf) < 0); 173 other.position(2); 174 assertTrue(buf.compareTo(other) < 0); 175 assertTrue(other.compareTo(buf) > 0); 177 other 642 assertContentEquals(LongBuffer buf, LongBuffer other) argument [all...] |
H A D | ShortBufferTest.java | 165 ShortBuffer other = ShortBuffer.allocate(buf.capacity()); 166 loadTestData1(other); 167 assertEquals(0, buf.compareTo(other)); 168 assertEquals(0, other.compareTo(buf)); 170 assertTrue(buf.compareTo(other) > 0); 171 assertTrue(other.compareTo(buf) < 0); 172 other.position(2); 173 assertTrue(buf.compareTo(other) < 0); 174 assertTrue(other.compareTo(buf) > 0); 176 other 622 assertContentEquals(ShortBuffer buf, ShortBuffer other) argument [all...] |