- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 557 for Array (0.03 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: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 8.1K 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: 2024-11-01 20:58 - Last Modified: 2024-03-07 01:59 - 10.6K 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: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 9K 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: 2024-11-01 12:43 - Last Modified: 2024-10-25 18:05 - 21.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureExtendedTrustManager.kt
override fun getAcceptedIssuers(): Array<X509Certificate> = delegate.acceptedIssuers override fun checkServerTrusted( chain: Array<out X509Certificate>, authType: String, socket: Socket, ) { if (socket.peerName() !in insecureHosts) { delegate.checkServerTrusted(chain, authType, socket) } } override fun checkServerTrusted( chain: Array<out X509Certificate>, authType: String,
Registered: 2024-11-01 11:42 - Last Modified: 2024-01-08 01:13 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Bytes.java
* i, i + target.length)} contains exactly the same elements as {@code target}. * * @param array the array to search for the sequence {@code target} * @param target the array to search for as a sub-sequence of {@code array} */ public static int indexOf(byte[] array, byte[] target) { checkNotNull(array, "array"); checkNotNull(target, "target");
Registered: 2024-11-01 12:43 - Last Modified: 2024-08-27 16:47 - 15.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: 2024-11-01 12:43 - Last Modified: 2024-10-25 18:05 - 29.3K bytes - Viewed (0) -
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: 2024-11-01 12:43 - Last Modified: 2024-10-17 15:52 - 29K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* * @param length the length of the array */ public AtomicDoubleArray(int length) { this.longs = new AtomicLongArray(length); } /** * Creates a new {@code AtomicDoubleArray} with the same length as, and all elements copied from, * the given array. * * @param array the array to copy elements from * @throws NullPointerException if array is null */
Registered: 2024-11-01 12:43 - Last Modified: 2024-06-14 17:55 - 10.3K bytes - Viewed (0) -
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: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 9K bytes - Viewed (0)