- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 1,608 for Integer (0.09 seconds)
-
android/guava/src/com/google/common/collect/DiscreteDomain.java
} @Override Integer offset(Integer origin, long distance) { checkNonnegative(distance, "distance"); return Ints.checkedCast(origin.longValue() + distance); } @Override public long distance(Integer start, Integer end) { return (long) end - start; } @Override public Integer minValue() { return Integer.MIN_VALUE; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 10.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java
} assertThat(removalListener.getCount()).isEqualTo(10); } private static void getAll(LoadingCache<Integer, Integer> cache, List<Integer> keys) { for (int i : keys) { cache.getUnchecked(i); } } private static class WatchedCreatorLoader extends CacheLoader<String, Integer> { boolean wasCalled = false; // must be set in load() String keyPrefix = KEY_PREFIX;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 19.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
public void testTransformEquals() { Map<String, Integer> underlying = ImmutableMap.of("a", 0, "b", 1, "c", 2); Map<String, Integer> expected = transformValues(underlying, Functions.<Integer>identity()); assertMapsEqual(expected, expected); Map<String, Integer> equalToUnderlying = Maps.newTreeMap(); equalToUnderlying.putAll(underlying);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 12.4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java
* * @author Ben L. Titzer */ @NullUnmarked public class ObjectsBenchmark { private static final Integer I0 = -45; private static final Integer I1 = -1; private static final Integer I2 = 3; private static final String S0 = "3"; private static final String S1 = "Ninety five"; private static final String S2 = "44 one million";Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.2K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Ints.java
* {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too * small */ public static int saturatedCast(long value) { if (value > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } if (value < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } return (int) value; } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 31.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/TagsTest.kt
.plus(String::class, "hello") .plus(Integer::class, 5 as Integer) assertThat(tags[String::class]).isEqualTo("hello") assertThat(tags[Integer::class]).isEqualTo(5) } /** The implementation retains no nodes from the original linked list. */ @Test fun replaceFirstElement() { val tags = EmptyTags .plus(String::class, "a") .plus(Integer::class, 5 as Integer)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Oct 24 11:37:46 GMT 2025 - 7.1K bytes - Click Count (0) -
android/guava/src/com/google/common/math/IntMath.java
* {@code x} is {@link Integer#MIN_VALUE}, in which case this returns {@link Integer#MAX_VALUE}. * (Note that {@code Integer.MAX_VALUE} is mathematically equal to {@code -Integer.MIN_VALUE - * 1}.) * * <p>There are three common APIs for determining the absolute value of an integer, all of which * behave identically except when passed {@code Integer.MIN_VALUE}. Those methods are: * * <ul>Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 26.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java
/** * Create integer sets for collection tests. * * @author Gregory Kick */ @GwtCompatible @NullMarked public abstract class TestIntegerSetGenerator implements TestSetGenerator<Integer> { @Override public SampleElements<Integer> samples() { return new Ints(); } @Override public Set<Integer> create(Object... elements) { Integer[] array = new Integer[elements.length];
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 2.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
} public void testOfEntriesNull() { Entry<@Nullable Integer, Integer> nullKey = entry(null, 23); assertThrows( NullPointerException.class, () -> ImmutableBiMap.ofEntries((Entry<Integer, Integer>) nullKey)); Entry<Integer, @Nullable Integer> nullValue = ImmutableBiMapTest.<@Nullable Integer>entry(23, null); assertThrows( NullPointerException.class,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
public void testEmptyBuilder() { ImmutableSortedMap<String, Integer> map = ImmutableSortedMap.<String, Integer>naturalOrder().build(); assertEquals(Collections.<String, Integer>emptyMap(), map); } public void testSingletonBuilder() { ImmutableSortedMap<String, Integer> map = ImmutableSortedMap.<String, Integer>naturalOrder().put("one", 1).build(); assertMapEquals(map, "one", 1); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0)