- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 187 for ImmutableList (0.18 sec)
-
guava/src/com/google/common/collect/ImmutableList.java
* undocumented and subject to change. * * <p>Note that if {@code list} is a {@code List<String>}, then {@code ImmutableList.copyOf(list)} * returns an {@code ImmutableList<String>} containing each of the strings in {@code list}, while * {@code ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one * element (the given list itself). *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 30K bytes - Viewed (1) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
@SuppressWarnings("unchecked") public static <E> ImmutableList<E> of() { return (ImmutableList<E>) RegularImmutableList.EMPTY; } public static <E> ImmutableList<E> of(E element) { return new SingletonImmutableList<E>(checkNotNull(element)); } public static <E> ImmutableList<E> of(E e1, E e2) { return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2)); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 11K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
* undocumented and subject to change. * * <p>Note that if {@code list} is a {@code List<String>}, then {@code ImmutableList.copyOf(list)} * returns an {@code ImmutableList<String>} containing each of the strings in {@code list}, while * {@code ImmutableList.of(list)} returns an {@code ImmutableList<List<String>>} containing one * element (the given list itself). *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 27.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
ImmutableList<Integer>[] array = (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)}; TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {}; ImmutableTypeToInstanceMap<Iterable<?>[]> map = ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build(); assertEquals(1, map.size());
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 6.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableRangeMap.java
return (ImmutableRangeMap<K, V>) rangeMap; } Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges(); ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<>(map.size()); ImmutableList.Builder<V> valuesBuilder = new ImmutableList.Builder<>(map.size()); for (Entry<Range<K>, ? extends V> entry : map.entrySet()) { rangesBuilder.add(entry.getKey()); valuesBuilder.add(entry.getValue()); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 14.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsImplTest.java
List<Iterable<String>> toAdd = ImmutableList.of( Collections.singleton("A"), Collections.emptyList(), ImmutableList.of("A", "B", "C"), ImmutableList.of("D", "E")); List<Integer> indexes = ImmutableList.of(0, 0, 1, 3); List<List<String>> expected = ImmutableList.of( ImmutableList.of("A"), ImmutableList.of("A"),
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 10.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java
} private transient @Nullable ImmutableList<E> asList; public ImmutableList<E> asList() { ImmutableList<E> list = asList; return (list == null) ? (asList = createAsList()) : list; } ImmutableList<E> createAsList() { switch (size()) { case 0: return ImmutableList.of(); case 1: return ImmutableList.of(iterator().next()); default:
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EquivalenceTest.java
EquivalenceTester.of(Equivalence.equals().<String>pairwise()) .addEquivalenceGroup(ImmutableList.<String>of()) .addEquivalenceGroup(ImmutableList.of("a")) .addEquivalenceGroup(ImmutableList.of("b")) .addEquivalenceGroup(ImmutableList.of("a", "b"), ImmutableList.of("a", "b")) .test(); } public void testPairwiseEquivalent_equals() { new EqualsTester()
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
List<Optional<String>> optionals = ImmutableList.of(Optional.of("a"), Optional.of("b"), Optional.of("c")); assertThat(Optional.presentInstances(optionals)).containsExactly("a", "b", "c").inOrder(); } public void testPresentInstances_allAbsent() { List<Optional<Object>> optionals = ImmutableList.of(Optional.absent(), Optional.absent());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
ImmutableList<Integer>[] array = (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)}; TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {}; ImmutableTypeToInstanceMap<Iterable<?>[]> map = ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build(); assertEquals(1, map.size());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 6.8K bytes - Viewed (0)