- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 351 for holder (0.29 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/collect/ImmutableTableTest.java
@Nullable String string; } public void testBuilder_withMutableCell() { ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); StringHolder holder = new StringHolder(); holder.string = "foo"; Table.Cell<Character, Integer, String> mutableCell = new Tables.AbstractCell<Character, Integer, String>() { @Override public Character getRowKey() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.6K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
} } mappings.put(var, arg); } } // This is needed when resolving types against a context with wildcards // For example: // class Holder<T> { // void set(T data) {...} // } // Holder<List<?>> should *not* resolve the set() method to set(List<?> data). // Instead, it should create a capture of the wildcard so that set() rejects any List<T>.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
() -> { holder.count++; return Thread.currentThread().getStackTrace().length; }, directExecutor())); } else { // Otherwise, schedule a task on directExecutor unused = serializer.submit( () -> { holder.count++; return null;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 13.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java
} @Override public int compareTo(CountsHashCodeAndEquals o) { onCompareTo.run(); return delegateString.compareTo(o.delegateString); } } /** A holder of counters for calls to hashCode, equals, and compareTo. */ private static final class CallsCounter { long hashCode; long equals; long compareTo; long total() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
ImmutableListMultimap.Builder<String, Integer> builder = new Builder<>(); StringHolder holder = new StringHolder(); holder.string = "one"; Entry<String, Integer> entry = new AbstractMapEntry<String, Integer>() { @Override public String getKey() { return holder.string; } @Override public Integer getValue() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.2K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/Striped64.java
* contention. See above for explanation. This method suffers the usual non-modularity problems of * optimistic retry code, relying on rechecked sets of reads. * * @param x the value * @param hc the hash code holder * @param wasUncontended false if CAS failed before call */ final void retryUpdate(long x, int @Nullable [] hc, boolean wasUncontended) { int h; if (hc == null) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 15 22:17:15 GMT 2025 - 11.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
} public void testMutableValues() { IntHolder holderA = new IntHolder(1); IntHolder holderB = new IntHolder(2); Map<String, IntHolder> map = ImmutableSortedMap.of("a", holderA, "b", holderB); holderA.value = 3; assertTrue(map.entrySet().contains(immutableEntry("a", new IntHolder(3))));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
ImmutableSetMultimap.Builder<String, Integer> builder = new Builder<>(); StringHolder holder = new StringHolder(); holder.string = "one"; Entry<String, Integer> entry = new AbstractMapEntry<String, Integer>() { @Override public String getKey() { return holder.string; } @Override public Integer getValue() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 28.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
ImmutableListMultimap.Builder<String, Integer> builder = new Builder<>(); StringHolder holder = new StringHolder(); holder.string = "one"; Entry<String, Integer> entry = new AbstractMapEntry<String, Integer>() { @Override public String getKey() { return holder.string; } @Override public Integer getValue() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 26.1K bytes - Click Count (0) -
guava/src/com/google/common/base/Suppliers.java
public T get() { // Another variant of Double Checked Locking. // // We use two volatile reads. We could reduce this to one by // putting our fields into a holder class, but (at least on x86) // the extra memory consumption and indirection are more // expensive than the extra volatile reads. long nanos = expirationNanos; long now = System.nanoTime();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 21:24:28 GMT 2026 - 16.1K bytes - Click Count (0)