- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 1,097 for asdict (0.12 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java
protected List<String> create(String[] elements) { return ImmutableList.<String>builder().addAll(asList(elements)).build(); } } public static class BuilderReversedListGenerator extends TestStringListGenerator { @Override protected List<String> create(String[] elements) { List<String> list = asList(elements); Collections.reverse(list); return ImmutableList.copyOf(list).reverse(); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
List<Float> floats = Arrays.asList((float) 0, (float) 1, (float) 2); List<Long> longs = Arrays.asList((long) 0, (long) 1, (long) 2); List<Double> doubles = Arrays.asList((double) 0, (double) 1, (double) 2); assertThat(Doubles.toArray(bytes)).isEqualTo(array); assertThat(Doubles.toArray(shorts)).isEqualTo(array); assertThat(Doubles.toArray(ints)).isEqualTo(array);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
FluentIterable<Integer> result = FluentIterable.<Integer>from(asList(1, 2, 3)).append(Lists.newArrayList(4, 5, 6)); assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result)); assertEquals("[1, 2, 3, 4, 5, 6]", result.toString()); result = FluentIterable.<Integer>from(asList(1, 2, 3)).append(4, 5, 6); assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 30.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java
ServiceManager manager = new ServiceManager(asList(a, b)); String toString = manager.toString(); assertThat(toString).contains("NoOpService"); assertThat(toString).contains("FailStartService"); } public void testTimeouts() throws Exception { Service a = new NoOpDelayedService(50); ServiceManager manager = new ServiceManager(asList(a)); manager.startAsync();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 25.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
holder.string = "two"; assertEquals(Arrays.asList(1), builder.build().get("one")); } public void testBuilderPutAllIterable() { ImmutableListMultimap.Builder<String, Integer> builder = ImmutableListMultimap.builder(); builder.putAll("foo", Arrays.asList(1, 2, 3)); builder.putAll("bar", Arrays.asList(4, 5)); builder.putAll("foo", Arrays.asList(6, 7)); Multimap<String, Integer> multimap = builder.build();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java
public class MapsMemoryBenchmark { static final Map<String, MapsImplEnum> mapEnums = uniqueIndex( Iterables.<MapsImplEnum>concat( asList(MapImpl.values()), asList(SortedMapImpl.values()), asList(BiMapImpl.values())), toStringFunction()); @Param({ "HashMapImpl", "LinkedHashMapImpl", "ConcurrentHashMapImpl", "CompactHashMapImpl",
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jun 10 19:21:11 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ArrayTableRowMapTest.java
public ArrayTableRowMapTest() { super(true, false, false, false); } @Override Table<String, Integer, Character> makeTable() { return ArrayTable.create(asList("foo", "bar", "dog"), asList(1, 2, 3)); } @Override protected Map<String, Map<Integer, Character>> makeEmptyMap() { throw new UnsupportedOperationException(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 1.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
* and use that list instead. */ public List<Long> asList() { /* * Typically we cache this kind of thing, but much repeated use of this view is a performance * anti-pattern anyway. If we cache, then everyone pays a price in memory footprint even if * they never use this method. */ return new AsList(this); } static class AsList extends AbstractList<Long> implements RandomAccess, Serializable {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 22.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableIntArray.java
return parent.subArray(fromIndex, toIndex).asList(); } // The default List spliterator is not efficiently splittable @Override public Spliterator<Integer> spliterator() { return parent.spliterator(); } @Override public boolean equals(@CheckForNull Object object) { if (object instanceof AsList) { AsList that = (AsList) object;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.4K bytes - Viewed (0)