- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 201 for special (0.32 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
public void testMaximalWeakStripedLock() { Striped<Lock> stripedLock = Striped.lazyWeakLock(Integer.MAX_VALUE); for (int i = 0; i < 10000; i++) { stripedLock.get(new Object()).lock(); // nothing special (e.g. an exception) happens } } public void testBulkGetReturnsSorted() { for (Striped<?> striped : allImplementations()) { Map<Object, Integer> indexByLock = Maps.newHashMap();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Collections2.java
calculateNextPermutation(); return next; } void calculateNextPermutation() { j = list.size() - 1; int s = 0; // Handle the special case of an empty list. Skip the calculation of the // next permutation. if (j == -1) { return; } while (true) { int q = c[j] + o[j]; if (q < 0) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 23.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/StandardSystemProperty.java
* available even under older version. * <li>Any property may be cleared through APIs like {@link System#clearProperty}. * <li>Unusual environments like GWT may have their own special handling of system properties. * </ul> * * <p>Note that {@code StandardSystemProperty} does not provide constants for more recently added * properties, including: * * <ul>
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 23 15:09:35 GMT 2023 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
* offset that is greater than the current length of the source, a stream is then opened to that * source, and finally additional bytes are appended to the source before the stream is read. * * <p>Without special handling, it's possible to have reads of the open stream start <i>before</i> * the offset at which the slice is supposed to start. */ // TODO(cgdecker): Maybe add a test for this to ByteSourceTester
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Strings.java
* * <p>Consider normalizing your string references with {@link #nullToEmpty}. If you do, you can * use {@link String#isEmpty()} instead of this method, and you won't need special null-safe forms * of methods like {@link String#toUpperCase} either. Or, if you'd like to normalize "in the other * direction," converting empty strings to {@code null}, you can use {@link #emptyToNull}. *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 09 00:49:18 GMT 2021 - 12.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableList.java
* * @throws NullPointerException if {@code elements} contains a null element */ public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) { // We special-case for 0 or 1 elements, but going further is madness. if (!elements.hasNext()) { return of(); } E first = elements.next(); if (!elements.hasNext()) { return of(first); } else {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 30K bytes - Viewed (1) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
.isEqualTo(InetAddresses.forString("127.0.0.1")); // ::1 special case assertThat(InetAddresses.getCoercedIPv4Address(InetAddresses.forString("::1"))) .isEqualTo(InetAddresses.forString("127.0.0.1")); // :: special case assertThat(InetAddresses.getCoercedIPv4Address(InetAddresses.forString("::")))
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 31.9K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
* longer strings. It could have been one or the other throughout. The main advantage of the * combination is that CityHash has a bunch of special cases for short strings that don't need to * be replicated here. The result will never be 0 or 1. * * <p>This function is best understood as a <a
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 09 00:37:15 GMT 2024 - 29.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Apr 06 12:56:11 GMT 2023 - 16.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/EvictingQueue.java
* we can override it in our non-null-guaranteeing subtypes to present a better signature to * their users. * * However, the checker *we* use has this special knowledge about `Collection.toArray()` anyway, * so in our implementation code, we can rely on that. That's why the expression below * type-checks. */ return super.toArray(); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri May 12 17:52:55 GMT 2023 - 4.6K bytes - Viewed (0)