- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 949 for arrays (0.03 sec)
-
android/guava/src/com/google/common/collect/Platform.java
return CompactHashSet.create(); } /** * Returns a new array of the given length with the same type as a reference array. * * @param reference any array of the desired type * @param length the length of the new array */ /* * The new array contains nulls, even if the old array did not. If we wanted to be accurate, we
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java
import com.google.common.annotations.VisibleForTesting; import java.util.Arrays; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * {@code ObjectCountLinkedHashMap} is a subclass of {@code ObjectCountHashMap} with insertion * iteration order, and uses arrays to store key objects and count values. Comparing to using a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/annotation/SecuredTest.java
assertNotNull(target); ElementType[] targetTypes = target.value(); assertEquals(2, targetTypes.length); assertTrue(Arrays.asList(targetTypes).contains(ElementType.METHOD)); assertTrue(Arrays.asList(targetTypes).contains(ElementType.TYPE)); // Check Retention annotation Retention retention = Secured.class.getAnnotation(Retention.class);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
String[] array = Iterables.toArray(iterable, String.class); assertTrue(Arrays.equals(new String[0], array)); } @GwtIncompatible // Iterables.toArray(Iterable, Class) public void testToArraySingleton() { Iterable<String> iterable = singletonList("a"); String[] array = Iterables.toArray(iterable, String.class); assertTrue(Arrays.equals(new String[] {"a"}, array)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Platform.java
return CompactHashSet.create(); } /** * Returns a new array of the given length with the same type as a reference array. * * @param reference any array of the desired type * @param length the length of the new array */ /* * The new array contains nulls, even if the old array did not. If we wanted to be accurate, we
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
} } /** Returns the {@code Class} object of arrays with {@code componentType}. */ static Class<?> getArrayClass(Class<?> componentType) { // TODO(user): This is not the most efficient way to handle generic // arrays, but is there another way to extract the array class in a // non-hacky way (i.e. using String value class names- "[L...")? return Array.newInstance(componentType, 0).getClass(); } /*
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
array[i] = counter.getAndIncrement(); } builder.addAll(ImmutableDoubleArray.copyOf(array)); } }, ADD_LARGER_ARRAY { @Override void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) { double[] array = new double[random.nextInt(200) + 200]; for (int i = 0; i < array.length; i++) { array[i] = counter.getAndIncrement();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/FacetInfo.java
/** * Adds a query facet to the existing query array. * If no queries exist, creates a new array with the provided query. * * @param s the query string to add as a facet */ public void addQuery(final String s) { if (query == null) { query = new String[] { s }; } else { final String[] newQuery = Arrays.copyOf(query, query.length + 1);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java
assertSame( "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array)); expectArrayContentsInOrder(getOrderedElements(), array); } public void testToArray_rightSizedArrayOfObject() { Object[] array = new Object[getNumElements()]; assertSame( "toArray(sameSizeObject[]) should return the given array", array,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
@SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8 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 int joinerWithStringDelimiter(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 5K bytes - Viewed (0)