Searched refs:other (Results 26 - 50 of 192) sorted by relevance

12345678

/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertificatePolicyId.java94 public boolean equals(Object other) { argument
95 if (other instanceof CertificatePolicyId)
97 ((CertificatePolicyId) other).getIdentifier());
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...]
H A DKeyIdentifier.java144 * Indicates whether some other object is "equal to" this one.
146 public boolean equals(Object other) { argument
147 if (this == other)
149 if (!(other instanceof KeyIdentifier))
151 byte[] otherString = ((KeyIdentifier)other).octetString;
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixException.java77 private IOException translateToIOException(String file, String other) { argument
84 return new AccessDeniedException(file, other, null);
86 return new NoSuchFileException(file, other, null);
88 return new FileAlreadyExistsException(file, other, null);
91 return new FileSystemException(file, other, errorString());
99 void rethrowAsIOException(UnixPath file, UnixPath other) throws IOException { argument
101 String b = (other == null) ? null : other.getPathForExceptionMessage();
/libcore/ojluni/src/main/java/java/util/
H A DLongSummaryStatistics.java105 * @param other another {@code LongSummaryStatistics}
106 * @throws NullPointerException if {@code other} is null
108 public void combine(LongSummaryStatistics other) { argument
109 count += other.count;
110 sum += other.sum;
111 min = Math.min(min, other.min);
112 max = Math.max(max, other.max);
H A DStringJoiner.java82 * other value including the empty String.
198 * <p>If the other {@code StringJoiner} is using a different delimiter,
199 * then elements from the other {@code StringJoiner} are concatenated with
203 * @param other The {@code StringJoiner} whose contents should be merged
205 * @throws NullPointerException if the other {@code StringJoiner} is null
208 public StringJoiner merge(StringJoiner other) { argument
209 Objects.requireNonNull(other);
210 if (other.value != null) {
211 final int length = other.value.length();
216 builder.append(other
[all...]
H A DComparators.java88 public Comparator<T> thenComparing(Comparator<? super T> other) { argument
89 Objects.requireNonNull(other);
90 return new NullComparator<>(nullFirst, real == null ? other : real.thenComparing(other));
H A DOptional.java242 * Return the value if present, otherwise return {@code other}.
244 * @param other the value to be returned if there is no value present, may
246 * @return the value, if present, otherwise {@code other}
248 public T orElse(T other) { argument
249 return value != null ? value : other;
253 * Return the value if present, otherwise invoke {@code other} and return
256 * @param other a {@code Supplier} whose result is returned if no value
258 * @return the value if present otherwise the result of {@code other.get()}
259 * @throws NullPointerException if value is not present and {@code other} is
262 public T orElseGet(Supplier<? extends T> other) { argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DRC5ParameterSpec.java181 RC5ParameterSpec other = (RC5ParameterSpec) obj;
183 return ((version == other.version) &&
184 (rounds == other.rounds) &&
185 (wordSize == other.wordSize) &&
186 java.util.Arrays.equals(iv, other.iv));
/libcore/support/src/test/java/tests/util/
H A DPair.java90 Pair other = (Pair) obj;
92 if (other.mFirst != null) {
95 } else if (!mFirst.equals(other.mFirst)) {
99 if (other.mSecond != null) {
102 } else if (!mSecond.equals(other.mSecond)) {
/libcore/ojluni/src/main/java/java/text/
H A DFieldPosition.java225 FieldPosition other = (FieldPosition) obj;
227 if (other.attribute != null) {
231 else if (!attribute.equals(other.attribute)) {
234 return (beginIndex == other.beginIndex
235 && endIndex == other.endIndex
236 && field == other.field);
/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/security/cert/
H A DX509CRLEntry.java71 * object. If the {@code other} object is an
76 * @param other the object to test for equality with this CRL entry.
80 public boolean equals(Object other) { argument
81 if (this == other)
83 if (!(other instanceof X509CRLEntry))
87 byte[] otherCRLEntry = ((X509CRLEntry)other).getEncoded();
H A DX509CRL.java125 * object. If the {@code other} object is an
130 * @param other the object to test for equality with this CRL.
135 public boolean equals(Object other) { argument
136 if (this == other) {
139 if (!(other instanceof X509CRL)) {
144 byte[] otherCRL = X509CRLImpl.getEncodedInternal((X509CRL)other);
368 * that means CRLs that contain entries from issuers other than the CRL
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSNIServerName.java111 * Indicates whether some other object is "equal to" this server name.
113 * @return true if, and only if, {@code other} is of the same class
118 public boolean equals(Object other) { argument
119 if (this == other) {
123 if (this.getClass() != other.getClass()) {
127 SNIServerName that = (SNIServerName)other;
/libcore/ojluni/src/main/java/javax/security/cert/
H A DCertificate.java67 * object. If the {@code other} object is an
72 * @param other the object to test for equality with this certificate.
76 public boolean equals(Object other) { argument
77 if (this == other)
79 if (!(other instanceof Certificate))
83 byte[] otherCert = ((Certificate)other).getEncoded();
/libcore/ojluni/src/main/java/java/time/chrono/
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...]
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...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDocumentBuilderSettingStrategy.java33 public boolean hasConflict(DocumentBuilderSettingStrategy other) { argument
34 return (other == this);
188 public boolean hasConflict(DocumentBuilderSettingStrategy other) {
189 if (other == this ||
190 other == DocumentBuilderSettingStrategy.namespaceAware ||
191 other == DocumentBuilderSettingStrategy.validating) {
H A DDocumentBuilderSetting.java221 * @param other
222 * other setting, may not be null.
225 public final boolean hasConflict(DocumentBuilderSetting other) { argument
226 if (other == null) {
227 throw new NullPointerException("other");
229 if (other == this) {
232 return strategy.hasConflict(other.strategy);
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDocumentBuilderSettingStrategy.java15 public boolean hasConflict(DocumentBuilderSettingStrategy other) { argument
16 return (other == this);
147 public boolean hasConflict(DocumentBuilderSettingStrategy other) {
148 if (other == this
149 || other == DocumentBuilderSettingStrategy.namespaceAware
150 || other == DocumentBuilderSettingStrategy.validating) {
H A DDocumentBuilderSetting.java221 * @param other
222 * other setting, may not be null.
225 public final boolean hasConflict(DocumentBuilderSetting other) { argument
226 if (other == null) {
227 throw new NullPointerException("other");
229 if (other == this) {
232 return strategy.hasConflict(other.strategy);
/libcore/ojluni/src/main/java/java/lang/
H A DEnum.java143 * @param other the object to be compared for equality with this object.
147 public final boolean equals(Object other) { argument
148 return this==other;
176 * Enum constants are only comparable to other enum constants of the
181 Enum<?> other = (Enum<?>)o;
183 if (self.getClass() != other.getClass() && // optimization
184 self.getDeclaringClass() != other.getDeclaringClass())
186 return self.ordinal - other.ordinal;
/libcore/support/src/test/java/libcore/tlswire/handshake/
H A DCompressionMethod.java70 CompressionMethod other = (CompressionMethod) obj;
71 if (type != other.type) {
/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...]

Completed in 641 milliseconds

12345678