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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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/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
130 * if lhs &gt; rhs.
133 public static int compare(int lhs, int rhs) { argument
134 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.java1580 * @return 0 if lhs = rhs, less than 0 if lhs &lt; rhs, and greater than 0 if lhs &gt; rhs.
1583 public static int compare(char lhs, char rhs) { argument
1584 return lhs - rhs;
/libcore/luni/src/main/java/java/net/
H A DAddressCache.java59 AddressCacheKey lhs = (AddressCacheKey) o;
60 return mHostname.equals(lhs.mHostname) && mNetId == lhs.mNetId;
/libcore/luni/src/main/java/java/text/
H A DDateFormatSymbols.java206 private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { argument
209 if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) {
213 return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings());
/libcore/luni/src/main/java/libcore/icu/
H A DTimeZoneNames.java103 public int compare(String[] lhs, String[] rhs) {
104 return lhs[OLSON_NAME].compareTo(rhs[OLSON_NAME]);
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeCollation.cpp103 ScopedStringChars lhs(env, javaLhs);
104 if (lhs.get() == NULL) {
111 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 394 milliseconds