- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 632 for where (0.15 sec)
-
android/guava/src/com/google/common/reflect/TypeParameter.java
import javax.annotation.CheckForNull; /** * Captures a free type variable that can be used in {@link TypeToken#where}. For example: * * <pre>{@code * static <T> TypeToken<List<T>> listOf(Class<T> elementType) { * return new TypeToken<List<T>>() {} * .where(new TypeParameter<T>() {}, elementType); * } * }</pre> * * @author Ben Yu * @since 12.0 */ @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jan 05 17:43:40 GMT 2022 - 2.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
Stopwatch s = Stopwatch.createStarted(); // here is where you would do something total += s.elapsed(TimeUnit.NANOSECONDS); } return total; } @Benchmark long manual(int reps) { long total = 0; for (int i = 0; i < reps; i++) { long start = System.nanoTime(); // here is where you would do something total += (System.nanoTime() - start); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
Stopwatch s = Stopwatch.createStarted(); // here is where you would do something total += s.elapsed(TimeUnit.NANOSECONDS); } return total; } @Benchmark long manual(int reps) { long total = 0; for (int i = 0; i < reps; i++) { long start = System.nanoTime(); // here is where you would do something total += (System.nanoTime() - start); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Striped.java
super(referent, queue); this.index = index; } } } /** * Implementation of Striped where up to 2^k stripes can be represented, using a ConcurrentMap * where the key domain is [0..2^k). To map a user key into a stripe, we take a k-bit slice of the * user key's (smeared) hashCode(). The stripes are lazily initialized and are weakly referenced. */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 10 20:55:18 GMT 2023 - 20.3K bytes - Viewed (1) -
android/guava/src/com/google/common/reflect/TypeToken.java
* return new TypeToken<Map<K, V>>() {} * .where(new TypeParameter<K>() {}, keyType) * .where(new TypeParameter<V>() {}, valueType); * } * }</pre> * * @param <X> The parameter type * @param typeParam the parameter type variable * @param typeArg the actual type to substitute */ /* * TODO(cpovirk): Is there any way for us to support TypeParameter instances for type parameters
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 53.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
*/ public void testTestEqualsEqualsObjects() { equalsTester.addEqualityGroup(reference, equalObject1, equalObject2); equalsTester.testEquals(); } /** Test proper handling of case where an object is not equal to itself */ public void testNonReflexiveEquals() { Object obj = new NonReflexiveObject(); equalsTester.addEqualityGroup(obj); try { equalsTester.testEquals();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 12.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java
* tasks would be called recursively. Here, we detect that the delegate executor is executing * inline, and maintain a queue to dispatch tasks iteratively. There is one instance of this class * per call to submit() or submitAsync(), and each instance supports only one call to execute(). * * <p>This class would certainly be simpler and easier to reason about if it were built with
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 01 21:46:34 GMT 2024 - 22.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeResolverTest.java
Type t = aTypeVariable(); assertEquals(String.class, new TypeResolver().where(t, String.class).resolveType(t)); } public <T> void testWhere_indirectMapping() { Type t1 = new TypeCapture<T>() {}.capture(); Type t2 = aTypeVariable(); assertEquals( String.class, new TypeResolver().where(t1, t2).where(t2, String.class).resolveType(t1)); } public void testWhere_typeVariableSelfMapping() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 9.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
/* * This test will catch problems where the underlying iterator * throws a RuntimeException when retrieving the nth element. * * If the PeekingIterator is caching elements too aggressively, * it may throw the exception on the (n-1)th element (oops!). */ /* Checks the case where the first element throws an exception. */ List<Integer> list = emptyList();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/ParametricNullness.java
* where the {@code ...} contains the names of all the other {@code ParametricNullness} * annotations in Guava. Or you might prefer to omit Guava from your {@code AnnotatedPackages} * list. * <li><a href="https://developers.google.com/j2objc">J2ObjC</a> * <li>{@code NullPointerTester}, at least in the Android backport (where the type-use annotations
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Aug 10 21:27:51 GMT 2022 - 4.1K bytes - Viewed (0)