- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 297 for MAX_VALUE (0.11 sec)
-
android/guava-tests/test/com/google/common/primitives/IntsTest.java
private static final int[] ARRAY1 = {(int) 1}; private static final int[] ARRAY234 = {(int) 2, (int) 3, (int) 4}; private static final int LEAST = Integer.MIN_VALUE; private static final int GREATEST = Integer.MAX_VALUE; private static final int[] VALUES = {LEAST, (int) -1, (int) 0, (int) 1, GREATEST}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
assertEquals(13, computeArrayListCapacity(8)); assertEquals(89, computeArrayListCapacity(77)); assertEquals(22000005, computeArrayListCapacity(20000000)); assertEquals(Integer.MAX_VALUE, computeArrayListCapacity(Integer.MAX_VALUE - 1000)); } public void testNewArrayListFromCollection() { @SuppressWarnings("UseCollectionConstructor") // test of factory method
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multiset.java
* not used in this API). Since the count of an element is represented as an {@code int}, a multiset * may never contain more than {@link Integer#MAX_VALUE} occurrences of any one element. * * <p>{@code Multiset} refines the specifications of several methods from {@code Collection}. It * also defines an additional query operation, {@link #count}, which returns the count of an
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
void testMaxTreeId() { int maxTreeId = Integer.MAX_VALUE; testMessage.setTreeId(maxTreeId); assertEquals(maxTreeId, testMessage.getTreeId()); } @Test @DisplayName("Should handle maximum session ID") void testMaxSessionId() { long maxSessionId = Long.MAX_VALUE; testMessage.setSessionId(maxSessionId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java
static <V> NeverScheduledFuture<V> create() { return new NeverScheduledFuture<>(); } @Override public long getDelay(TimeUnit unit) { return Long.MAX_VALUE; } @Override public int compareTo(Delayed other) { return Long.compare(getDelay(NANOSECONDS), other.getDelay(NANOSECONDS)); } } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 6.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/RangeTest.java
} public void testGreaterThan() { Range<Integer> range = Range.greaterThan(5); assertFalse(range.contains(5)); assertTrue(range.contains(6)); assertTrue(range.contains(Integer.MAX_VALUE)); assertTrue(range.hasLowerBound()); assertEquals(5, (int) range.lowerEndpoint()); assertEquals(OPEN, range.lowerBoundType()); assertUnboundedAbove(range); assertFalse(range.isEmpty());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
return count(element); } int index = element.ordinal(); int oldCount = counts[index]; long newCount = (long) oldCount + occurrences; checkArgument(newCount <= Integer.MAX_VALUE, "too many occurrences: %s", newCount); counts[index] = (int) newCount; if (oldCount == 0) { distinctElements++; } size += occurrences; return oldCount; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSource.java
/** Counts the bytes in the given input stream using skip if possible. */ private long countBySkipping(InputStream in) throws IOException { long count = 0; long skipped; while ((skipped = skipUpTo(in, Integer.MAX_VALUE)) > 0) { count += skipped; } return count; } /** * Copies the contents of this byte source to the given {@code OutputStream}. Does not close * {@code output}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 20 20:55:20 UTC 2025 - 25.7K bytes - Viewed (0) -
guava/src/com/google/common/escape/ArrayBasedCharEscaper.java
// If the safe range is empty, set the range limits to opposite extremes // to ensure the first test of either value will (almost certainly) fail. safeMax = Character.MIN_VALUE; safeMin = Character.MAX_VALUE; } this.safeMin = safeMin; this.safeMax = safeMax; } /* * This is overridden to improve performance. Rough benchmarking shows that this almost doubles
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/LinearTransformationTest.java
// to loss of precision with this value of the slope. } public void testMappingWithSlope_maximalSlope() { double x1 = 1.2; double y1 = 3.4; double slope = Double.MAX_VALUE; LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope); assertThat(transformation.isVertical()).isFalse(); assertThat(transformation.isHorizontal()).isFalse();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.1K bytes - Viewed (0)