- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 768 for Array (0.01 sec)
-
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: 2025-05-30 12:43 - Last Modified: 2024-12-19 20:54 - 8.2K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Ints.java
public static int min(int... array) { checkArgument(array.length > 0); int min = array[0]; for (int i = 1; i < array.length; i++) { if (array[i] < min) { min = array[i]; } } return min; } /** * Returns the greatest value present in {@code array}. * * @param array a <i>nonempty</i> array of {@code int} values
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-14 16:36 - 31K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 3.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
assertThat(ArrayUtil.addAll(emptyArray, array), is(sameInstance(array))); assertThat(ArrayUtil.addAll(array, emptyArray), is(sameInstance(array))); } /** * @throws Exception */ @Test public void testAdd_int() throws Exception { final int[] array = new int[] { 1 }; final int[] newArray = ArrayUtil.add(array, 2); assertThat(newArray.length, is(2));
Registered: 2025-05-24 08:58 - Last Modified: 2025-05-10 01:32 - 10.6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableDoubleArray.java
private final int end; // exclusive private ImmutableDoubleArray(double[] array) { this(array, 0, array.length); } private ImmutableDoubleArray(double[] array, int start, int end) { this.array = array; this.start = start; this.end = end; } /** Returns the number of values in this array. */ public int length() { return end - start; }
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-14 16:36 - 22.1K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableLongArray.java
private final int end; // exclusive private ImmutableLongArray(long[] array) { this(array, 0, array.length); } private ImmutableLongArray(long[] array, int start, int end) { this.array = array; this.start = start; this.end = end; } /** Returns the number of values in this array. */ public int length() { return end - start; }
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-14 16:36 - 21.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectArrays.java
T[] result = newArray(array, array.length + 1); result[0] = element; arraycopy(array, 0, result, 1, array.length); return result; } /** * Returns a new array that appends {@code element} to {@code array}. * * @param array the array of elements to prepend * @param element the element to append to the end
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-22 03:38 - 8.9K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedBytes.java
* @since 23.1 */ public static void sort(byte[] array, int fromIndex, int toIndex) { checkNotNull(array); checkPositionIndexes(fromIndex, toIndex, array.length); for (int i = fromIndex; i < toIndex; i++) { array[i] = flip(array[i]); } Arrays.sort(array, fromIndex, toIndex); for (int i = fromIndex; i < toIndex; i++) { array[i] = flip(array[i]); } } /**
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-14 16:36 - 20.3K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
checkArgument(array.length > 0); long min = array[0]; for (int i = 1; i < array.length; i++) { if (array[i] < min) { min = array[i]; } } return min; } /** * Returns the greatest value present in {@code array}. * * @param array a <i>nonempty</i> array of {@code long} values
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-14 16:36 - 29.1K bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial003.py
Registered: 2025-05-25 07:19 - Last Modified: 2024-07-31 14:09 - 12.1K bytes - Viewed (0)