Searched defs:other (Results 51 - 75 of 104) sorted by relevance

12345

/libcore/ojluni/src/main/java/java/nio/file/
H A DPath.java42 * The other name elements are directory names. A {@code Path} can represent a
56 * Paths can be {@link #compareTo compared}, and tested against each other using
69 * directories, and other types of files. For example, suppose we want a {@link
81 * with the {@link java.io.File java.io.File} class. Paths created by other
112 * with other path information in order to locate a file.
234 * @param other
240 boolean startsWith(Path other); argument
249 * @param other
258 boolean startsWith(String other); argument
279 * @param other
285 endsWith(Path other) argument
306 endsWith(String other) argument
358 resolve(Path other) argument
378 resolve(String other) argument
399 resolveSibling(Path other) argument
416 resolveSibling(String other) argument
458 relativize(Path other) argument
751 compareTo(Path other) argument
775 equals(Object other) argument
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DDriverManager.java610 public boolean equals(Object other) { argument
611 return (other instanceof DriverInfo)
612 && this.driver == ((DriverInfo) other).driver;
/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronoLocalDateTime.java44 * and/or other materials provided with the distribution.
113 * This interface must be implemented with care to ensure other classes operate correctly.
181 * The era and other fields in {@link ChronoField} are defined by the chronology.
495 * @param other the other date-time to compare to, not null
499 default int compareTo(ChronoLocalDateTime<?> other) { argument
500 int cmp = toLocalDate().compareTo(other.toLocalDate());
502 cmp = toLocalTime().compareTo(other.toLocalTime());
504 cmp = getChronology().compareTo(other.getChronology());
521 * @param other th
524 isAfter(ChronoLocalDateTime<?> other) argument
545 isBefore(ChronoLocalDateTime<?> other) argument
566 isEqual(ChronoLocalDateTime<?> other) argument
[all...]
H A DAbstractChronology.java44 * and/or other materials provided with the distribution.
121 * This class must be implemented with care to ensure other classes operate correctly.
373 * all other date fields are then cross-checked against the date.
693 * @param other the other chronology to compare to, not null
697 public int compareTo(Chronology other) { argument
698 return getId().compareTo(other.getId());
711 * @return true if this is equal to the other chronology
H A DChronoLocalDate.java44 * 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...]
H A DChronoZonedDateTime.java44 * and/or other materials provided with the distribution.
114 * This interface must be implemented with care to ensure other classes operate correctly.
253 * The era and other fields in {@link ChronoField} are defined by the chronology.
565 * @param other the other date-time to compare to, not null
569 default int compareTo(ChronoZonedDateTime<?> other) { argument
570 int cmp = Long.compare(toEpochSecond(), other.toEpochSecond());
572 cmp = toLocalTime().getNano() - other.toLocalTime().getNano();
574 cmp = toLocalDateTime().compareTo(other.toLocalDateTime());
576 cmp = getZone().getId().compareTo(other
599 isBefore(ChronoZonedDateTime<?> other) argument
619 isAfter(ChronoZonedDateTime<?> other) argument
639 isEqual(ChronoZonedDateTime<?> other) argument
[all...]
/libcore/ojluni/src/main/java/java/time/zone/
H A DZoneOffsetTransition.java44 * and/or other materials provided with the distribution.
409 * @param other the other object to compare to, null returns false
413 public boolean equals(Object other) { argument
414 if (other == this) {
417 if (other instanceof ZoneOffsetTransition) {
418 ZoneOffsetTransition d = (ZoneOffsetTransition) other;
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCompletionStage.java47 * in turn trigger other dependent stages. The functionality defined
97 * In all other cases, if a stage's computation terminates abruptly
120 * value for any other parameter will result in a {@link
294 * Returns a new CompletionStage that, when this and the other
301 * @param other the other CompletionStage
304 * @param <U> the type of the other CompletionStage's result
309 (CompletionStage<? extends U> other,
313 * Returns a new CompletionStage that, when this and the other
321 * @param other th
308 thenCombine(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn) argument
328 thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn) argument
349 thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor) argument
368 thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) argument
387 thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) argument
407 thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) argument
424 runAfterBoth(CompletionStage<?> other, Runnable action) argument
439 runAfterBothAsync(CompletionStage<?> other, Runnable action) argument
456 runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) argument
473 applyToEither(CompletionStage<? extends T> other, Function<? super T, U> fn) argument
492 applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn) argument
512 applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn, Executor executor) argument
530 acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action) argument
548 acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action) argument
567 acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) argument
584 runAfterEither(CompletionStage<?> other, Runnable action) argument
600 runAfterEitherAsync(CompletionStage<?> other, Runnable action) argument
618 runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) argument
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DReduceOps.java84 public void combine(ReducingSink other) {
85 state = combiner.apply(state, other.state);
133 public void combine(ReducingSink other) {
134 if (!other.empty)
135 accept(other.state);
173 public void combine(ReducingSink other) {
174 state = combiner.apply(state, other.state);
224 public void combine(ReducingSink other) {
225 reducer.accept(state, other.state);
267 public void combine(ReducingSink other) {
655 combine(K other) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertificateExtensions.java292 * object. If the <code>other</code> object is an
296 * @param other the object to test for equality with this
301 public boolean equals(Object other) { argument
302 if (this == other)
304 if (!(other instanceof CertificateExtensions))
307 ((CertificateExtensions)other).getAllExtensions();
329 ((CertificateExtensions)other).getUnparseableExtensions());
H A DGeneralSubtrees.java150 * @param other GeneralSubtrees to compare to this
160 GeneralSubtrees other = (GeneralSubtrees)obj;
161 return this.trees.equals(other.trees);
237 * name type that widens all other names of that type.
289 * intersect this GeneralSubtrees with other. This function
293 * <li>If a name in other narrows all names of the same type in this,
296 * <li>If a name in other widens all names of the same type in this,
298 * <li>If a name in other does not share the same subtree with any name
305 * <li>If a name in this has no name of the same type in other, then
308 * <li>If a name in other ha
320 intersect(GeneralSubtrees other) argument
478 union(GeneralSubtrees other) argument
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DBaseLocale.java114 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...]
H A DLocaleExtensions.java233 public boolean equals(Object other) { argument
234 if (this == other) {
237 if (!(other instanceof LocaleExtensions)) {
240 return id.equals(((LocaleExtensions)other).id);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DCharBufferTest.java194 CharBuffer other = CharBuffer.allocate(buf.capacity());
195 other.put(buf);
196 other.clear();
198 assertEquals(0, buf.compareTo(other));
199 assertEquals(0, other.compareTo(buf));
201 assertTrue(buf.compareTo(other) > 0);
202 assertTrue(other.compareTo(buf) < 0);
203 other.position(2);
204 assertTrue(buf.compareTo(other) < 0);
205 assertTrue(other
841 assertContentEquals(CharBuffer buf, CharBuffer other) argument
[all...]
H A DDoubleBufferTest.java184 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 DFloatBufferTest.java174 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 DIntBufferTest.java166 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 DLongBufferTest.java166 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 DShortBufferTest.java165 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...]
/libcore/luni/src/test/java/libcore/java/util/
H A DComparatorTest.java189 public int compareTo(Item other) { argument
190 return primaryOrder - other.getOrderAsInt() != 0 ?
191 primaryOrder - other.getOrderAsInt() :
192 secondaryOrder - other.getSecondaryOrderAsInt();
H A DGregorianCalendarTest.java359 // TimeZone.getTimeZone(String) specially and the code that runs for other classes does
488 public boolean hasSameRules(TimeZone other) { argument
489 return timeZone.hasSameRules(other);
/libcore/ojluni/src/main/java/java/net/
H A DURL.java122 * would be considered not equal to each other.
906 * {@code other} argument are equal without taking the
909 * @param other the {@code URL} to compare against.
913 public boolean sameFile(URL other) { argument
914 return handler.sameFile(this, other);
/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DFileTime.java328 * @param other
329 * the other {@code FileTime} to be compared
331 * @return {@code 0} if this {@code FileTime} is equal to {@code other}, a
333 * that is before {@code other}, and a value greater than 0 if this
334 * {@code FileTime} represents a time that is after {@code other}
337 public int compareTo(FileTime other) { argument
339 if (unit != null && unit == other.unit) {
340 return Long.compare(value, other.value);
344 long secsOther = other.toInstant().getEpochSecond();
349 cmp = Long.compare(toInstant().getNano(), other
[all...]
/libcore/ojluni/src/main/java/java/time/
H A DMonthDay.java44 * 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 DZoneOffset.java44 * and/or other materials provided with the distribution.
111 * standard ISO definitions of those fields. This class may be used with other
512 * All other {@code ChronoField} instances will return false.
536 * or for some other reason, an exception is thrown.
541 * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
564 * or for some other reason, an exception is thrown.
568 * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
598 * or for some other reason, an exception is thrown.
602 * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
692 * @param other th
697 compareTo(ZoneOffset other) argument
[all...]

Completed in 1113 milliseconds

12345