- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for component (0.2 sec)
-
android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
int count; @Param({"0", "1", "16", "32", "100"}) int componentLength; private Iterable<String> components; @BeforeExperiment void setUp() { String component = Strings.repeat("a", componentLength); String[] raw = new String[count]; Arrays.fill(raw, component); components = Arrays.asList(raw); } /** {@link Joiner} with a string delimiter. */ @Benchmark
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
int count; @Param({"0", "1", "16", "32", "100"}) int componentLength; private Iterable<String> components; @BeforeExperiment void setUp() { String component = Strings.repeat("a", componentLength); String[] raw = new String[count]; Arrays.fill(raw, component); components = Arrays.asList(raw); } /** {@link Joiner} with a string delimiter. */ @Benchmark
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectArrays.java
@ElementTypesAreNonnullByDefault @SuppressWarnings("AvoidObjectArrays") public final class ObjectArrays { private ObjectArrays() {} /** * Returns a new array of the given length with the specified component type. * * @param type the component type * @param length the length of the new array */ @GwtIncompatible // Array.newInstance(Class, int) @SuppressWarnings("unchecked")
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jun 12 15:59:22 GMT 2023 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* failed future if any of the items fails. * * <p>Canceling this future will attempt to cancel all the component futures, and if any of the * provided futures fails or is canceled, this one is, too. * * @param futures futures to combine * @return a future that provides a list of the results of the component futures * @since 10.0 */ @SafeVarargs
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 59.6K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
} // array is covariant. component type is subtype, so is the array type. // requireNonNull is safe because we call getArraySubtype only when isArray(). TypeToken<?> componentSubtype = requireNonNull(getComponentType()).getSubtype(subclassComponentType); @SuppressWarnings("unchecked") // component type is subtype, so is array type. TypeToken<? extends T> result =
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) -
android/guava/src/com/google/common/io/Files.java
if (pathname.length() == 0) { return "."; } // split the path apart Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname); List<String> path = new ArrayList<>(); // resolve ., .., and // for (String component : components) { switch (component) { case ".": continue; case "..":
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 33.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/EventBusTest.java
bus.register(compCatcher); // Two additional event types: Object and Comparable<?> (played by Integer) Object objEvent = new Object(); Object compEvent = 6; bus.post(EVENT); bus.post(objEvent); bus.post(compEvent); // Check the StringCatcher... List<String> stringEvents = stringCatcher.getEvents(); assertEquals("Only one String should be delivered.", 1, stringEvents.size());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
bus.register(compCatcher); // Two additional event types: Object and Comparable<?> (played by Integer) Object objEvent = new Object(); Object compEvent = 6; bus.post(EVENT); bus.post(objEvent); bus.post(compEvent); // Check the StringCatcher... List<String> stringEvents = stringCatcher.getEvents(); assertEquals("Only one String should be delivered.", 1, stringEvents.size());
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
* A lock's behavior when a cycle is detected, however, is defined by the {@code Policy} of the * factory that created it. This allows detection of cycles across components while delegating * control over lock behavior to individual components. * * <p>Applications are encouraged to use a {@code CycleDetectingLockFactory} to create any locks for * which external/unmanaged code is executed while the lock is held. (See caveats under
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 35.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ServiceManager.java
*/ public void healthy() {} /** * Called when the all of the component services have reached a terminal state, either * {@linkplain State#TERMINATED terminated} or {@linkplain State#FAILED failed}. */ public void stopped() {} /** * Called when a component service has {@linkplain State#FAILED failed}. * * @param service The service that failed. */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Dec 13 19:45:20 GMT 2023 - 30.5K bytes - Viewed (0)