- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 889 for integers (0.05 seconds)
-
guava-tests/test/com/google/common/collect/IteratorsTest.java
public void testFilterUsingIteratorTester() { List<Integer> list = asList(1, 2, 3, 4, 5); Predicate<Integer> isEven = new Predicate<Integer>() { @Override public boolean apply(Integer integer) { return integer % 2 == 0; } }; new IteratorTester<Integer>( 5, UNMODIFIABLE, asList(2, 4), IteratorTester.KnownOrder.KNOWN_ORDER) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 56.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
} Set<Entry<Integer, Integer>> entries = bimap.entrySet(); for (Entry<Integer, Integer> entry : entries) { entry.setValue(entry.getValue() + 2 * N); } for (int i = 0; i < N; i++) { assertEquals(2 * N + 2 * i - 1, (int) bimap.get(2 * i)); } } public void testBiMapEntrySetIteratorRemove() { BiMap<Integer, String> map = HashBiMap.create();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 8.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/DenseImmutableTable.java
@GwtCompatible @Immutable(containerOf = {"R", "C", "V"}) final class DenseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> { private final ImmutableMap<R, Integer> rowKeyToIndex; private final ImmutableMap<C, Integer> columnKeyToIndex; private final ImmutableMap<R, ImmutableMap<C, V>> rowMap; private final ImmutableMap<C, ImmutableMap<R, V>> columnMap;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 9.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/StandardMutableDirectedGraphTest.java
} private final boolean allowsSelfLoops; private final ElementOrder<Integer> incidentEdgeOrder; public StandardMutableDirectedGraphTest( boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) { this.allowsSelfLoops = allowsSelfLoops; this.incidentEdgeOrder = incidentEdgeOrder; } @Override public MutableGraph<Integer> createGraph() { return GraphBuilder.directed()
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/StandardMutableDirectedGraphTest.java
} private final boolean allowsSelfLoops; private final ElementOrder<Integer> incidentEdgeOrder; public StandardMutableDirectedGraphTest( boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) { this.allowsSelfLoops = allowsSelfLoops; this.incidentEdgeOrder = incidentEdgeOrder; } @Override public MutableGraph<Integer> createGraph() { return GraphBuilder.directed()
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/eventbus/DispatcherTest.java
private final ImmutableList<Subscriber> integerSubscribers = ImmutableList.of( subscriber(bus, i1, "handleInteger", Integer.class), subscriber(bus, i2, "handleInteger", Integer.class), subscriber(bus, i3, "handleInteger", Integer.class)); private final StringSubscriber s1 = new StringSubscriber("s1"); private final StringSubscriber s2 = new StringSubscriber("s2");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 5.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
// need explicit type parameter to avoid javac warning!? List<Integer> none = Arrays.<Integer>asList(); assertThat(Ints.toArray(none)).isEqualTo(EMPTY); List<Integer> one = Arrays.asList((int) 1); assertThat(Ints.toArray(one)).isEqualTo(ARRAY1); int[] array = {(int) 0, (int) 1, (int) 0xdeadbeef}; List<Integer> three = Arrays.asList((int) 0, (int) 1, (int) 0xdeadbeef);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 29.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
Collection<List<Integer>> permutationSet = Collections2.permutations(Collections.<Integer>emptyList()); assertEquals(1, permutationSet.size()); assertTrue(permutationSet.contains(Collections.<Integer>emptyList())); Iterator<List<Integer>> permutations = permutationSet.iterator(); assertNextPermutation(Collections.<Integer>emptyList(), permutations);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java
public SubMapMultimapAsMapImplementsMapTest() { super(true, true, true); } private TreeMultimap<String, Integer> createMultimap() { TreeMultimap<String, Integer> multimap = TreeMultimap.create( Ordering.<String>natural().nullsFirst(), Ordering.<Integer>natural().nullsFirst()); multimap.put("a", -1); multimap.put("a", -3); multimap.put("z", -2); return multimap; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SetsFilterSortedSetTest.java
extends AbstractFilteredSortedSetTest<SortedSet<Integer>> { @Override SortedSet<Integer> createUnfiltered(Iterable<Integer> contents) { TreeSet<Integer> result = Sets.newTreeSet(contents); // we have to make the result not Navigable return new ForwardingSortedSet<Integer>() { @Override protected SortedSet<Integer> delegate() { return result; } }; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 1.5K bytes - Click Count (0)