Searched refs:lhs (Results 1 - 16 of 16) sorted by relevance

/libcore/luni/src/test/java/tests/api/java/util/
H A DLinkedHashSetTest.java231 LinkedHashSet<Integer> lhs = new LinkedHashSet<Integer>();
234 lhs.add(new Integer(1));
235 assertEquals(1, lhs.size());
236 lhs.retainAll(v);
237 assertEquals(0, lhs.size());
245 lhs.add(new Integer(1));
246 lhs.add(new Integer(6));
247 lhs.add(new Integer(7));
248 lhs.add(new Integer(8));
249 lhs
[all...]
/libcore/luni/src/main/java/java/util/
H A DComparator.java35 * {@code (lhs, rhs)} should form an <i>equivalence relation</i>.
46 * @param lhs
49 * a second {@code Object} to compare with {@code lhs}.
50 * @return an integer < 0 if {@code lhs} is less than {@code rhs}, 0 if they are
51 * equal, and > 0 if {@code lhs} is greater than {@code rhs}.
55 public int compare(T lhs, T rhs); argument
H A DBitSet.java44 * Note that Java's shift operators truncate their rhs to the log2 size of the lhs.
122 BitSet lhs = (BitSet) o;
123 if (this.longCount != lhs.longCount) {
127 if (bits[i] != lhs.bits[i]) {
/libcore/crypto/src/main/java/org/conscrypt/
H A DByteArray.java41 ByteArray lhs = (ByteArray) o;
42 return Arrays.equals(bytes, lhs.bytes);
H A DClientSessionContext.java141 HostAndPort lhs = (HostAndPort) o;
142 return host.equals(lhs.host) && port == lhs.port;
/libcore/luni/src/main/java/java/lang/
H A DBoolean.java129 * @return 0 if lhs = rhs, less than 0 if lhs &lt; rhs, and greater than 0 if lhs &gt; rhs.
133 public static int compare(boolean lhs, boolean rhs) { argument
134 return lhs == rhs ? 0 : lhs ? 1 : -1;
H A DByte.java114 * @return 0 if lhs = rhs, less than 0 if lhs &lt; rhs, and greater than 0 if lhs &gt; rhs.
117 public static int compare(byte lhs, byte rhs) { argument
118 return lhs > rhs ? 1 : (lhs < rhs ? -1 : 0);
H A DShort.java113 * @return 0 if lhs = rhs, less than 0 if lhs &lt; rhs, and greater than 0 if lhs &gt; rhs.
116 public static int compare(short lhs, short rhs) { argument
117 return lhs > rhs ? 1 : (lhs < rhs ? -1 : 0);
H A DInteger.java129 * @return 0 if lhs = rhs, less than 0 if lhs &lt; rhs, and greater than 0 if lhs &gt; rhs.
132 public static int compare(int lhs, int rhs) { argument
133 return lhs < rhs ? -1 : (lhs == rhs ? 0 : 1);
H A DLong.java116 * @return 0 if lhs = rhs, less than 0 if lhs &lt; rhs, and greater than 0 if lhs &gt; rhs.
119 public static int compare(long lhs, long rhs) { argument
120 return lhs < rhs ? -1 : (lhs == rhs ? 0 : 1);
H A DCharacter.java1575 * @return 0 if lhs = rhs, less than 0 if lhs &lt; rhs, and greater than 0 if lhs &gt; rhs.
1578 public static int compare(char lhs, char rhs) { argument
1579 return lhs - rhs;
/libcore/luni/src/main/java/java/text/
H A DDateFormatSymbols.java202 private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { argument
205 if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) {
209 return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings());
/libcore/luni/src/main/java/libcore/icu/
H A DTimeZoneNames.java108 public int compare(String[] lhs, String[] rhs) {
109 return lhs[OLSON_NAME].compareTo(rhs[OLSON_NAME]);
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeCollation.cpp40 ScopedStringChars lhs(env, javaLhs);
41 if (lhs.get() == NULL) {
48 return ucol_strcoll(toCollator(address), lhs.get(), lhs.size(), rhs.get(), rhs.size());
/libcore/luni/src/main/java/java/math/
H A DBigInteger.java417 BigInt lhs = getBigInt();
422 if (lhs.sign() == 0) {
425 return new BigInteger(BigInt.addition(lhs, rhs));
432 BigInt lhs = getBigInt();
437 return new BigInteger(BigInt.subtraction(lhs, rhs));
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DECDHKeyAgreementTest.java432 public int compare(Provider lhs, Provider rhs) {
433 return lhs.getName().compareTo(rhs.getName());

Completed in 467 milliseconds