Searched refs:other (Results 1 - 25 of 150) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/util/function/
H A DDoublePredicate.java55 * predicate, if this predicate is {@code false}, then the {@code other}
60 * {@code other} predicate will not be evaluated.
62 * @param other a predicate that will be logically-ANDed with this
65 * AND of this predicate and the {@code other} predicate
66 * @throws NullPointerException if other is null
68 default DoublePredicate and(DoublePredicate other) { argument
69 Objects.requireNonNull(other);
70 return (value) -> test(value) && other.test(value);
87 * predicate, if this predicate is {@code true}, then the {@code other}
92 * {@code other} predicat
100 or(DoublePredicate other) argument
[all...]
H A DIntPredicate.java55 * predicate, if this predicate is {@code false}, then the {@code other}
60 * {@code other} predicate will not be evaluated.
62 * @param other a predicate that will be logically-ANDed with this
65 * AND of this predicate and the {@code other} predicate
66 * @throws NullPointerException if other is null
68 default IntPredicate and(IntPredicate other) { argument
69 Objects.requireNonNull(other);
70 return (value) -> test(value) && other.test(value);
87 * predicate, if this predicate is {@code true}, then the {@code other}
92 * {@code other} predicat
100 or(IntPredicate other) argument
[all...]
H A DLongPredicate.java55 * predicate, if this predicate is {@code false}, then the {@code other}
60 * {@code other} predicate will not be evaluated.
62 * @param other a predicate that will be logically-ANDed with this
65 * AND of this predicate and the {@code other} predicate
66 * @throws NullPointerException if other is null
68 default LongPredicate and(LongPredicate other) { argument
69 Objects.requireNonNull(other);
70 return (value) -> test(value) && other.test(value);
87 * predicate, if this predicate is {@code true}, then the {@code other}
92 * {@code other} predicat
100 or(LongPredicate other) argument
[all...]
H A DBiPredicate.java58 * predicate, if this predicate is {@code false}, then the {@code other}
63 * {@code other} predicate will not be evaluated.
65 * @param other a predicate that will be logically-ANDed with this
68 * AND of this predicate and the {@code other} predicate
69 * @throws NullPointerException if other is null
71 default BiPredicate<T, U> and(BiPredicate<? super T, ? super U> other) { argument
72 Objects.requireNonNull(other);
73 return (T t, U u) -> test(t, u) && other.test(t, u);
90 * predicate, if this predicate is {@code true}, then the {@code other}
95 * {@code other} predicat
103 or(BiPredicate<? super T, ? super U> other) argument
[all...]
H A DPredicate.java54 * predicate, if this predicate is {@code false}, then the {@code other}
59 * {@code other} predicate will not be evaluated.
61 * @param other a predicate that will be logically-ANDed with this
64 * AND of this predicate and the {@code other} predicate
65 * @throws NullPointerException if other is null
67 default Predicate<T> and(Predicate<? super T> other) { argument
68 Objects.requireNonNull(other);
69 return (t) -> test(t) && other.test(t);
86 * predicate, if this predicate is {@code true}, then the {@code other}
91 * {@code other} predicat
99 or(Predicate<? super T> other) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DOptionalDouble.java141 * Return the value if present, otherwise return {@code other}.
143 * @param other the value to be returned if there is no value present
144 * @return the value, if present, otherwise {@code other}
146 public double orElse(double other) { argument
147 return isPresent ? value : other;
151 * Return the value if present, otherwise invoke {@code other} and return
154 * @param other a {@code DoubleSupplier} whose result is returned if no value
156 * @return the value if present otherwise the result of {@code other.getAsDouble()}
157 * @throws NullPointerException if value is not present and {@code other} is
160 public double orElseGet(DoubleSupplier other) { argument
[all...]
H A DOptionalInt.java142 * Return the value if present, otherwise return {@code other}.
144 * @param other the value to be returned if there is no value present
145 * @return the value, if present, otherwise {@code other}
147 public int orElse(int other) { argument
148 return isPresent ? value : other;
152 * Return the value if present, otherwise invoke {@code other} and return
155 * @param other a {@code IntSupplier} whose result is returned if no value
157 * @return the value if present otherwise the result of {@code other.getAsInt()}
158 * @throws NullPointerException if value is not present and {@code other} is
161 public int orElseGet(IntSupplier other) { argument
[all...]
H A DOptionalLong.java141 * Return the value if present, otherwise return {@code other}.
143 * @param other the value to be returned if there is no value present
144 * @return the value, if present, otherwise {@code other}
146 public long orElse(long other) { argument
147 return isPresent ? value : other;
151 * Return the value if present, otherwise invoke {@code other} and return
154 * @param other a {@code LongSupplier} whose result is returned if no value
156 * @return the value if present otherwise the result of {@code other.getAsLong()}
157 * @throws NullPointerException if value is not present and {@code other} is
160 public long orElseGet(LongSupplier other) { argument
[all...]
H A DIntSummaryStatistics.java93 * @param other another {@code IntSummaryStatistics}
94 * @throws NullPointerException if {@code other} is null
96 public void combine(IntSummaryStatistics other) { argument
97 count += other.count;
98 sum += other.sum;
99 min = Math.min(min, other.min);
100 max = Math.max(max, other.max);
H A DDoubleSummaryStatistics.java95 * @param other another {@code DoubleSummaryStatistics}
96 * @throws NullPointerException if {@code other} is null
98 public void combine(DoubleSummaryStatistics other) { argument
99 count += other.count;
100 simpleSum += other.simpleSum;
101 sumWithCompensation(other.sum);
102 sumWithCompensation(other.sumCompensation);
103 min = Math.min(min, other.min);
104 max = Math.max(max, other.max);
141 * summation or other techniqu
[all...]
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);
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValue.java44 @Override public int compareTo(EncodedValue other) { argument
45 int size = Math.min(data.length, other.data.length);
47 if (data[i] != other.data[i]) {
48 return (data[i] & 0xff) - (other.data[i] & 0xff);
51 return data.length - other.data.length;
H A DFieldId.java46 public int compareTo(FieldId other) { argument
47 if (declaringClassIndex != other.declaringClassIndex) {
48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex);
50 if (nameIndex != other.nameIndex) {
51 return Unsigned.compare(nameIndex, other.nameIndex);
53 return Unsigned.compare(typeIndex, other.typeIndex); // should always be 0
H A DMethodId.java46 public int compareTo(MethodId other) { argument
47 if (declaringClassIndex != other.declaringClassIndex) {
48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex);
50 if (nameIndex != other.nameIndex) {
51 return Unsigned.compare(nameIndex, other.nameIndex);
53 return Unsigned.compare(protoIndex, other.protoIndex);
H A DTypeList.java37 @Override public int compareTo(TypeList other) { argument
38 for (int i = 0; i < types.length && i < other.types.length; i++) {
39 if (types[i] != other.types[i]) {
40 return Unsigned.compare(types[i], other.types[i]);
43 return Unsigned.compare(types.length, other.types.length);
/libcore/luni/src/main/java/libcore/icu/
H A DCollationKeyICU.java30 public int compareTo(CollationKey other) { argument
32 if (other instanceof CollationKeyICU) {
33 otherKey = ((CollationKeyICU) other).key;
35 otherKey = new android.icu.text.CollationKey(other.getSourceString(),
36 other.toByteArray());
/libcore/support/src/test/java/tests/support/
H A DSupport_GetPutFields.java71 SimpleClass other = (SimpleClass) obj;
72 return (a == other.getA() && b.equals(other.getB()));
93 Support_GetPutFields other = (Support_GetPutFields) obj;
94 return (booleanValue == other.booleanValue &&
95 byteValue == other.byteValue &&
96 charValue == other.charValue &&
97 doubleValue == other.doubleValue &&
98 floatValue == other.floatValue &&
99 longValue == other
[all...]
H A DSupport_GetPutFieldsDefaulted.java82 SimpleClass other = (SimpleClass) obj;
83 return (a == other.getA() && b.equals(other.getB()));
104 Support_GetPutFieldsDefaulted other = (Support_GetPutFieldsDefaulted) obj;
105 return (booleanValue == other.booleanValue &&
106 byteValue == other.byteValue &&
107 charValue == other.charValue &&
108 doubleValue == other.doubleValue &&
109 floatValue == other.floatValue &&
110 longValue == other
[all...]
H A DSupport_GetPutFieldsDeprecated.java73 SimpleClass other = (SimpleClass) obj;
74 return (a == other.getA() && b.equals(other.getB()));
95 Support_GetPutFields other = (Support_GetPutFields) obj;
96 return (booleanValue == other.booleanValue &&
97 byteValue == other.byteValue &&
98 charValue == other.charValue &&
99 doubleValue == other.doubleValue &&
100 floatValue == other.floatValue &&
101 longValue == other
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DParsePosition.java118 ParsePosition other = (ParsePosition) obj;
119 return (index == other.index && errorIndex == other.errorIndex);
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileKey.java61 FileKey other = (FileKey)obj;
62 if ((this.st_dev != other.st_dev) ||
63 (this.st_ino != other.st_ino)) {
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertificatePolicyId.java94 public boolean equals(Object other) { argument
95 if (other instanceof CertificatePolicyId)
96 return id.equals(((CertificatePolicyId) other).getIdentifier());
/libcore/ojluni/src/main/java/sun/misc/
H A DFDBigInt.java50 public FDBigInt( FDBigInt other ){
51 data = new int[nWords = other.nWords];
52 System.arraycopy( other.data, 0, data, 0, nWords );
247 mult( FDBigInt other ){
249 int r[] = new int[ nWords + other.nWords ];
257 for( j = 0; j < other.nWords; j++ ){
258 p += ((long)r[i+j]&0xffffffffL) + v*((long)other.data[j]&0xffffffffL); // UNSIGNED CONVERSIONS ALL 'ROUND.
275 add( FDBigInt other ){
282 if ( this.nWords >= other.nWords ){
285 b = other
340 dataInRangeIsZero(int i, int m, FDBigInt 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)) {

Completed in 349 milliseconds

123456