- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for arraySize (0.04 sec)
-
src/main/java/org/codelibs/core/misc/AssertionUtil.java
* @param argValue * The value of the index. * @param arraySize * The length of the array the index refers to. * @throws ClIllegalArgumentException * If the argument is invalid as an array index. */ public static void assertArgumentArrayIndex(final String argName, final int argValue, final int arraySize) { if (argValue < 0) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/Lists.java
return list; } @VisibleForTesting static int computeArrayListCapacity(int arraySize) { checkNonnegative(arraySize, "arraySize"); // TODO(kevinb): Figure out the right behavior, and document it return Ints.saturatedCast(5L + arraySize + (arraySize / 10)); } /** * Creates an {@code ArrayList} instance backed by an array with the specified initial size;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 42.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
public void testBitSize() { double fpp = 0.03; for (int i = 1; i < 10000; i++) { long numBits = BloomFilter.optimalNumOfBits(i, fpp); int arraySize = Ints.checkedCast(LongMath.divide(numBits, 64, RoundingMode.CEILING)); assertEquals( arraySize * Long.SIZE, BloomFilter.create(Funnels.unencodedCharsFunnel(), i, fpp).bitSize()); } } public void testApproximateElementCount() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 22.1K bytes - Viewed (0)