Home
last modified time | relevance | path

Searched refs:other (Results 1 – 25 of 251) sorted by relevance

1234567891011

/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPath.java42 public final boolean startsWith(String other) { in startsWith() argument
43 return startsWith(getFileSystem().getPath(other)); in startsWith()
47 public final boolean endsWith(String other) { in endsWith() argument
48 return endsWith(getFileSystem().getPath(other)); in endsWith()
52 public final Path resolve(String other) { in resolve() argument
53 return resolve(getFileSystem().getPath(other)); in resolve()
57 public final Path resolveSibling(Path other) { in resolveSibling() argument
58 if (other == null) in resolveSibling()
61 return (parent == null) ? other : parent.resolve(other); in resolveSibling()
65 public final Path resolveSibling(String other) { in resolveSibling() argument
[all …]
DUnixException.java83 private IOException translateToIOException(String file, String other) { in translateToIOException() argument
90 return new AccessDeniedException(file, other, null); in translateToIOException()
92 return new NoSuchFileException(file, other, null); in translateToIOException()
94 return new FileAlreadyExistsException(file, other, null); in translateToIOException()
96 return new FileSystemException(file, other, errorString() in translateToIOException()
100 return new FileSystemException(file, other, errorString()); in translateToIOException()
108 void rethrowAsIOException(UnixPath file, UnixPath other) throws IOException { in rethrowAsIOException() argument
110 String b = (other == null) ? null : other.getPathForExceptionMessage(); in rethrowAsIOException()
/libcore/support/src/test/java/tests/support/
DSupport_GetPutFieldsDefaulted.java82 SimpleClass other = (SimpleClass) obj; in equals() local
83 return (a == other.getA() && b.equals(other.getB())); in equals()
104 Support_GetPutFieldsDefaulted other = (Support_GetPutFieldsDefaulted) obj; in equals() local
105 return (booleanValue == other.booleanValue && in equals()
106 byteValue == other.byteValue && in equals()
107 charValue == other.charValue && in equals()
108 doubleValue == other.doubleValue && in equals()
109 floatValue == other.floatValue && in equals()
110 longValue == other.longValue && in equals()
111 intValue == other.intValue && in equals()
[all …]
DSupport_GetPutFields.java71 SimpleClass other = (SimpleClass) obj; in equals() local
72 return (a == other.getA() && b.equals(other.getB())); in equals()
93 Support_GetPutFields other = (Support_GetPutFields) obj; in equals() local
94 return (booleanValue == other.booleanValue && in equals()
95 byteValue == other.byteValue && in equals()
96 charValue == other.charValue && in equals()
97 doubleValue == other.doubleValue && in equals()
98 floatValue == other.floatValue && in equals()
99 longValue == other.longValue && in equals()
100 intValue == other.intValue && in equals()
[all …]
DSupport_GetPutFieldsDeprecated.java73 SimpleClass other = (SimpleClass) obj; in equals() local
74 return (a == other.getA() && b.equals(other.getB())); in equals()
95 Support_GetPutFields other = (Support_GetPutFields) obj; in equals() local
96 return (booleanValue == other.booleanValue && in equals()
97 byteValue == other.byteValue && in equals()
98 charValue == other.charValue && in equals()
99 doubleValue == other.doubleValue && in equals()
100 floatValue == other.floatValue && in equals()
101 longValue == other.longValue && in equals()
102 intValue == other.intValue && in equals()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/
DFileSystemException.java43 private final String other; field in FileSystemException
56 this.other = null; in FileSystemException()
72 public FileSystemException(String file, String other, String reason) { in FileSystemException() argument
75 this.other = other; in FileSystemException()
93 return other; in getOtherFile()
110 if (file == null && other == null) in getMessage()
115 if (other != null) { in getMessage()
117 sb.append(other); in getMessage()
DPath.java354 boolean startsWith(Path other); in startsWith() argument
372 boolean startsWith(String other); in startsWith() argument
399 boolean endsWith(Path other); in endsWith() argument
420 boolean endsWith(String other); in endsWith() argument
472 Path resolve(Path other); in resolve() argument
492 Path resolve(String other); in resolve() argument
513 Path resolveSibling(Path other); in resolveSibling() argument
530 Path resolveSibling(String other); in resolveSibling() argument
572 Path relativize(Path other); in relativize() argument
865 int compareTo(Path other); in compareTo() argument
[all …]
/libcore/ojluni/src/test/java/util/StringJoiner/
DMergeTest.java80 StringJoiner other = new StringJoiner(",", fixes.pre1, fixes.suf1); in testSimple()
82 Stream.of("d", "e", "f").forEachOrdered(other::add); in testSimple()
84 sj.merge(other); in testSimple()
92 StringJoiner other = new StringJoiner(",", fixes.pre1, fixes.suf1); in testEmptyOther()
95 sj.merge(other); in testEmptyOther()
98 other.setEmptyValue("EMPTY"); in testEmptyOther()
99 sj.merge(other); in testEmptyOther()
107 StringJoiner other = new StringJoiner(":", fixes.pre1, fixes.suf1); in testEmptyThis()
108 Stream.of("d", "e", "f").forEachOrdered(other::add); in testEmptyThis()
110 sj.merge(other); in testEmptyThis()
[all …]
/libcore/ojluni/src/main/java/java/util/function/
DIntPredicate.java68 default IntPredicate and(IntPredicate other) { in and() argument
69 Objects.requireNonNull(other); in and()
70 return (value) -> test(value) && other.test(value); in and()
100 default IntPredicate or(IntPredicate other) { in or() argument
101 Objects.requireNonNull(other); in or()
102 return (value) -> test(value) || other.test(value); in or()
DLongPredicate.java68 default LongPredicate and(LongPredicate other) { in and() argument
69 Objects.requireNonNull(other); in and()
70 return (value) -> test(value) && other.test(value); in and()
100 default LongPredicate or(LongPredicate other) { in or() argument
101 Objects.requireNonNull(other); in or()
102 return (value) -> test(value) || other.test(value); in or()
DDoublePredicate.java68 default DoublePredicate and(DoublePredicate other) { in and() argument
69 Objects.requireNonNull(other); in and()
70 return (value) -> test(value) && other.test(value); in and()
100 default DoublePredicate or(DoublePredicate other) { in or() argument
101 Objects.requireNonNull(other); in or()
102 return (value) -> test(value) || other.test(value); in or()
DBiPredicate.java71 default BiPredicate<T, U> and(BiPredicate<? super T, ? super U> other) { in and() argument
72 Objects.requireNonNull(other); in and()
73 return (T t, U u) -> test(t, u) && other.test(t, u); in and()
103 default BiPredicate<T, U> or(BiPredicate<? super T, ? super U> other) { in or() argument
104 Objects.requireNonNull(other); in or()
105 return (T t, U u) -> test(t, u) || other.test(t, u); in or()
DPredicate.java67 default Predicate<T> and(Predicate<? super T> other) { in and() argument
68 Objects.requireNonNull(other); in and()
69 return (t) -> test(t) && other.test(t); in and()
99 default Predicate<T> or(Predicate<? super T> other) { in or() argument
100 Objects.requireNonNull(other); in or()
101 return (t) -> test(t) || other.test(t); in or()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCompletionStage.java309 (CompletionStage<? extends U> other, in thenCombine() argument
329 (CompletionStage<? extends U> other, in thenCombineAsync() argument
350 (CompletionStage<? extends U> other, in thenCombineAsync() argument
369 (CompletionStage<? extends U> other, in thenAcceptBoth() argument
388 (CompletionStage<? extends U> other, in thenAcceptBothAsync() argument
408 (CompletionStage<? extends U> other, in thenAcceptBothAsync() argument
424 public CompletionStage<Void> runAfterBoth(CompletionStage<?> other, in runAfterBoth() argument
439 public CompletionStage<Void> runAfterBothAsync(CompletionStage<?> other, in runAfterBothAsync() argument
456 public CompletionStage<Void> runAfterBothAsync(CompletionStage<?> other, in runAfterBothAsync() argument
474 (CompletionStage<? extends T> other, in applyToEither() argument
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DGeneralSubtrees.java160 GeneralSubtrees other = (GeneralSubtrees)obj; in equals() local
161 return this.trees.equals(other.trees); in equals()
320 public GeneralSubtrees intersect(GeneralSubtrees other) { in intersect() argument
322 if (other == null) { in intersect()
332 union(other); in intersect()
340 other.minimize(); in intersect()
360 for (int j = 0; j < other.size(); j++) { in intersect()
361 GeneralSubtree otherEntryGS = other.get(j); in intersect()
400 for (int k = 0; k < other.size(); k++) { in intersect()
402 other.getGeneralNameInterface(k); in intersect()
[all …]
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTime.java576 default int compareTo(ChronoZonedDateTime<?> other) { in compareTo() argument
577 int cmp = Long.compare(toEpochSecond(), other.toEpochSecond()); in compareTo()
579 cmp = toLocalTime().getNano() - other.toLocalTime().getNano(); in compareTo()
581 cmp = toLocalDateTime().compareTo(other.toLocalDateTime()); in compareTo()
583 cmp = getZone().getId().compareTo(other.getZone().getId()); in compareTo()
585 cmp = getChronology().compareTo(other.getChronology()); in compareTo()
606 default boolean isBefore(ChronoZonedDateTime<?> other) { in isBefore() argument
608 long otherEpochSec = other.toEpochSecond(); in isBefore()
610 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore()
626 default boolean isAfter(ChronoZonedDateTime<?> other) { in isAfter() argument
[all …]
DChronoLocalDateTime.java506 default int compareTo(ChronoLocalDateTime<?> other) { in compareTo() argument
507 int cmp = toLocalDate().compareTo(other.toLocalDate()); in compareTo()
509 cmp = toLocalTime().compareTo(other.toLocalTime()); in compareTo()
511 cmp = getChronology().compareTo(other.getChronology()); in compareTo()
531 default boolean isAfter(ChronoLocalDateTime<?> other) { in isAfter() argument
533 long otherEpDay = other.toLocalDate().toEpochDay(); in isAfter()
535 … (thisEpDay == otherEpDay && this.toLocalTime().toNanoOfDay() > other.toLocalTime().toNanoOfDay()); in isAfter()
552 default boolean isBefore(ChronoLocalDateTime<?> other) { in isBefore() argument
554 long otherEpDay = other.toLocalDate().toEpochDay(); in isBefore()
556 … (thisEpDay == otherEpDay && this.toLocalTime().toNanoOfDay() < other.toLocalTime().toNanoOfDay()); in isBefore()
[all …]
/libcore/ojluni/src/main/java/java/util/
DDoubleSummaryStatistics.java155 public void combine(DoubleSummaryStatistics other) { in combine() argument
156 count += other.count; in combine()
157 simpleSum += other.simpleSum; in combine()
158 sumWithCompensation(other.sum); in combine()
161 sumWithCompensation(-other.sumCompensation); in combine()
162 min = Math.min(min, other.min); in combine()
163 max = Math.max(max, other.max); in combine()
DOptionalLong.java219 public long orElse(long other) { in orElse() argument
220 return isPresent ? value : other; in orElse()
296 return obj instanceof OptionalLong other in equals()
297 && (isPresent && other.isPresent in equals()
298 ? value == other.value in equals()
299 : isPresent == other.isPresent); in equals()
DOptionalInt.java219 public int orElse(int other) { in orElse() argument
220 return isPresent ? value : other; in orElse()
296 return obj instanceof OptionalInt other in equals()
297 && (isPresent && other.isPresent in equals()
298 ? value == other.value in equals()
299 : isPresent == other.isPresent); in equals()
/libcore/ojluni/src/main/java/java/util/stream/
DReduceOps.java84 public void combine(ReducingSink other) { in makeRef() argument
85 state = combiner.apply(state, other.state); in makeRef()
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);
308 public void combine(ReducingSink other) {
[all …]
/libcore/luni/src/main/java/libcore/icu/
DCollationKeyICU.java30 public int compareTo(CollationKey other) { in compareTo() argument
32 if (other instanceof CollationKeyICU) { in compareTo()
33 otherKey = ((CollationKeyICU) other).key; in compareTo()
35 otherKey = new android.icu.text.CollationKey(other.getSourceString(), in compareTo()
36 other.toByteArray()); in compareTo()
/libcore/json/src/test/java/libcore/org/json/
DJSONArrayTest.java108 JSONArray other = new JSONArray(); in testBooleans() local
109 other.put(true); in testBooleans()
110 other.put(false); in testBooleans()
111 other.put(true); in testBooleans()
112 other.put(false); in testBooleans()
113 assertTrue(array.equals(other)); in testBooleans()
114 other.put(true); in testBooleans()
115 assertFalse(array.equals(other)); in testBooleans()
117 other = new JSONArray(); in testBooleans()
118 other.put("true"); in testBooleans()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DStringLatin1.java93 public static boolean equals(byte[] value, byte[] other) { in equals() argument
94 if (value.length == other.length) { in equals()
96 if (value[i] != other[i]) { in equals()
106 public static int compareTo(byte[] value, byte[] other) { in compareTo() argument
108 int len2 = other.length; in compareTo()
109 return compareTo(value, other, len1, len2); in compareTo()
112 public static int compareTo(byte[] value, byte[] other, int len1, int len2) { in compareTo() argument
115 if (value[k] != other[k]) { in compareTo()
116 return getChar(value, k) - getChar(other, k); in compareTo()
123 public static int compareToUTF16(byte[] value, byte[] other) { in compareToUTF16() argument
[all …]
/libcore/luni/src/main/java/android/system/
DStructTimespec.java41 public int compareTo(StructTimespec other) { in compareTo() argument
42 if (tv_sec > other.tv_sec) { in compareTo()
45 if (tv_sec < other.tv_sec) { in compareTo()
48 if (tv_nsec > other.tv_nsec) { in compareTo()
51 if (tv_nsec < other.tv_nsec) { in compareTo()

1234567891011