- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,204 for Array (0.02 seconds)
-
src/main/java/org/codelibs/core/collection/ArrayUtil.java
assertArgumentNotNull("array", array); final int[] newArray = (int[]) Array.newInstance(int.class, array.length + 1); System.arraycopy(array, 0, newArray, 0, array.length); newArray[array.length] = value; return newArray; } /** * Returns a new array with the specified long value appended to the end of the long array. *
Created: 2026-04-03 20:58 - Last Modified: 2025-07-31 08:16 - 41.5K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Chars.java
checkArgument(array.length > 0); char 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 char} values
Created: 2026-04-03 12:43 - Last Modified: 2025-08-07 16:05 - 24.2K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Shorts.java
public static short min(short... array) { checkArgument(array.length > 0); short 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 short} values
Created: 2026-04-03 12:43 - Last Modified: 2025-10-22 18:14 - 25.7K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Booleans.java
implements RandomAccess, Serializable { final boolean[] array; final int start; final int end; BooleanArrayAsList(boolean[] array) { this(array, 0, array.length); } BooleanArrayAsList(boolean[] array, int start, int end) { this.array = array; this.start = start; this.end = end; } @OverrideCreated: 2026-04-03 12:43 - Last Modified: 2025-09-25 15:01 - 20.6K bytes - Click Count (0) -
android/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
Created: 2026-04-03 12:43 - Last Modified: 2026-03-17 16:45 - 31.3K bytes - Click Count (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,
Created: 2026-04-03 12:43 - Last Modified: 2025-09-08 18:35 - 8.2K bytes - Click Count (0) -
android/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; }
Created: 2026-04-03 12:43 - Last Modified: 2025-12-12 14:49 - 22K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
* @since 23.1 */ public static void sort(long[] 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]); } } /**
Created: 2026-04-03 12:43 - Last Modified: 2026-01-05 22:13 - 17.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/QuantilesAlgorithm.java
swap(array, from, to); } return array[k]; } else { int midIndex = (from + to) >>> 1; // Choose the median of the elements at the from, to and mid indexes, // and rearrange so that array[from]<=array[from+1], and // array[to] => array[from + 1]. swap(array, midIndex, from + 1); if (array[from] > array[to]) {
Created: 2026-04-03 12:43 - Last Modified: 2026-03-03 05:21 - 7.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
*/ private SMBUtil() { } /** * Writes a 16-bit integer value to a byte array in little-endian format * @param val the value to write * @param dst the destination byte array * @param dstIndex the starting index in the destination array */ public static void writeInt2(final long val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val;Created: 2026-04-05 00:10 - Last Modified: 2025-08-16 01:32 - 8K bytes - Click Count (0)