/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | LinkedHashSetTest.java | 231 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 D | Comparator.java | 35 * {@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 D | BitSet.java | 44 * 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 D | ByteArray.java | 41 ByteArray lhs = (ByteArray) o; 42 return Arrays.equals(bytes, lhs.bytes);
|
H A D | ClientSessionContext.java | 141 HostAndPort lhs = (HostAndPort) o; 142 return host.equals(lhs.host) && port == lhs.port;
|
/libcore/luni/src/main/java/java/lang/ |
H A D | Boolean.java | 129 * @return 0 if lhs = rhs, less than 0 if lhs < rhs, and greater than 0 if lhs > rhs. 133 public static int compare(boolean lhs, boolean rhs) { argument 134 return lhs == rhs ? 0 : lhs ? 1 : -1;
|
H A D | Byte.java | 114 * @return 0 if lhs = rhs, less than 0 if lhs < rhs, and greater than 0 if lhs > rhs. 117 public static int compare(byte lhs, byte rhs) { argument 118 return lhs > rhs ? 1 : (lhs < rhs ? -1 : 0);
|
H A D | Short.java | 113 * @return 0 if lhs = rhs, less than 0 if lhs < rhs, and greater than 0 if lhs > rhs. 116 public static int compare(short lhs, short rhs) { argument 117 return lhs > rhs ? 1 : (lhs < rhs ? -1 : 0);
|
H A D | Integer.java | 129 * @return 0 if lhs = rhs, less than 0 if lhs < rhs, and greater than 0 if lhs > rhs. 132 public static int compare(int lhs, int rhs) { argument 133 return lhs < rhs ? -1 : (lhs == rhs ? 0 : 1);
|
H A D | Long.java | 116 * @return 0 if lhs = rhs, less than 0 if lhs < rhs, and greater than 0 if lhs > rhs. 119 public static int compare(long lhs, long rhs) { argument 120 return lhs < rhs ? -1 : (lhs == rhs ? 0 : 1);
|
H A D | Character.java | 1575 * @return 0 if lhs = rhs, less than 0 if lhs < rhs, and greater than 0 if lhs > rhs. 1578 public static int compare(char lhs, char rhs) { argument 1579 return lhs - rhs;
|
/libcore/luni/src/main/java/java/text/ |
H A D | DateFormatSymbols.java | 202 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 D | TimeZoneNames.java | 108 public int compare(String[] lhs, String[] rhs) { 109 return lhs[OLSON_NAME].compareTo(rhs[OLSON_NAME]);
|
/libcore/luni/src/main/native/ |
H A D | libcore_icu_NativeCollation.cpp | 40 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 D | BigInteger.java | 417 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 D | ECDHKeyAgreementTest.java | 432 public int compare(Provider lhs, Provider rhs) { 433 return lhs.getName().compareTo(rhs.getName());
|