- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for initialValue (0.28 sec)
-
android/guava/src/com/google/common/cache/Striped64.java
} } /** Sets base and all cells to the given value. */ final void internalReset(long initialValue) { Cell[] as = cells; base = initialValue; if (as != null) { int n = as.length; for (int i = 0; i < n; ++i) { Cell a = as[i]; if (a != null) a.value = initialValue; } } } // Unsafe mechanics private static final Unsafe UNSAFE;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 11.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
doTestSet(e3()); } private void doTestSet(E newValue) { int index = aValidIndex(); E initialValue = getList().get(index); assertEquals( "set(i, x) should return the old element at position i.", initialValue, getList().set(index, newValue)); assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
doTestSet(e3()); } private void doTestSet(E newValue) { int index = aValidIndex(); E initialValue = getList().get(index); assertEquals( "set(i, x) should return the old element at position i.", initialValue, getList().set(index, newValue)); assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.2K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/Platform.java
* going and grow as needed. */ private static final ThreadLocal<char[]> DEST_TL = new ThreadLocal<char[]>() { @Override protected char[] initialValue() { return new char[1024]; } };
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 1.6K bytes - Viewed (0) -
guava/src/com/google/common/eventbus/Dispatcher.java
@Override protected Queue<Event> initialValue() { return Queues.newArrayDeque(); } }; /** Per-thread dispatch state, used to avoid reentrant event dispatching. */ private final ThreadLocal<Boolean> dispatching = new ThreadLocal<Boolean>() { @Override protected Boolean initialValue() { return false; } };
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 7.3K bytes - Viewed (0) -
guava/src/com/google/common/hash/Striped64.java
} } /** Sets base and all cells to the given value. */ final void internalReset(long initialValue) { Cell[] as = cells; base = initialValue; if (as != null) { int n = as.length; for (int i = 0; i < n; ++i) { Cell a = as[i]; if (a != null) a.value = initialValue; } } } // Unsafe mechanics private static final Unsafe UNSAFE;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
final ListeningExecutorService executor = newDirectExecutorService(); final ThreadLocal<Integer> threadLocalCount = new ThreadLocal<Integer>() { @Override protected Integer initialValue() { return 0; } }; final AtomicReference<Throwable> throwableFromOtherThread = new AtomicReference<>(null); final Runnable incrementTask = new Runnable() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 28.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt
* Most websites serve cookies in the blessed format. Eagerly create the parser to ensure such * cookies are on the fast path. */ private val STANDARD_DATE_FORMAT = object : ThreadLocal<DateFormat>() { override fun initialValue(): DateFormat { // Date format specified by RFC 7231 section 7.1.1.1. return SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US).apply { isLenient = false timeZone = UTC }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
final ListeningExecutorService executor = newDirectExecutorService(); final ThreadLocal<Integer> threadLocalCount = new ThreadLocal<Integer>() { @Override protected Integer initialValue() { return 0; } }; final AtomicReference<Throwable> throwableFromOtherThread = new AtomicReference<>(null); final Runnable incrementTask = new Runnable() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 28.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
public class BloomFilterTest extends TestCase { private static final int NUM_PUTS = 100_000; private static final ThreadLocal<Random> random = new ThreadLocal<Random>() { @Override protected Random initialValue() { return new Random(); } }; private static final int GOLDEN_PRESENT_KEY = random.get().nextInt(); @AndroidIncompatible // OutOfMemoryError
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 21.2K bytes - Viewed (0)