Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 276 for ImmutableList (0.14 sec)

  1. android/guava/src/com/google/common/io/CharSource.java

       */
      public ImmutableList<String> readLines() throws IOException {
        Closer closer = Closer.create();
        try {
          BufferedReader reader = closer.register(openBufferedStream());
          List<String> result = new ArrayList<>();
          String line;
          while ((line = reader.readLine()) != null) {
            result.add(line);
          }
          return ImmutableList.copyOf(result);
        } catch (Throwable e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSource.java

       */
      public ImmutableList<String> readLines() throws IOException {
        Closer closer = Closer.create();
        try {
          BufferedReader reader = closer.register(openBufferedStream());
          List<String> result = new ArrayList<>();
          String line;
          while ((line = reader.readLine()) != null) {
            result.add(line);
          }
          return ImmutableList.copyOf(result);
        } catch (Throwable e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/QueuesTest.java

    @NullUnmarked
    public class QueuesTest extends TestCase {
      /*
       * All the following tests relate to BlockingQueue methods in Queues.
       */
    
      public static List<BlockingQueue<Object>> blockingQueues() {
        return ImmutableList.<BlockingQueue<Object>>of(
            new LinkedBlockingQueue<Object>(),
            new LinkedBlockingQueue<Object>(10),
            new SynchronousQueue<Object>(),
            new ArrayBlockingQueue<Object>(10),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.cache.AbstractCache.SimpleStatsCounter;
    import com.google.common.cache.AbstractCache.StatsCounter;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMap;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.concurrent.atomic.AtomicReference;
    import junit.framework.TestCase;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/CompactHashMapFloodingTest.java

    @NullUnmarked
    public class CompactHashMapFloodingTest extends AbstractHashFloodingTest<Map<Object, Object>> {
      public CompactHashMapFloodingTest() {
        super(
            ImmutableList.of(Construction.mapFromKeys(CompactHashMap::create)),
            n -> n * log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/CompactHashSetFloodingTest.java

    @GwtIncompatible
    @NullUnmarked
    public class CompactHashSetFloodingTest extends AbstractHashFloodingTest<Set<Object>> {
      public CompactHashSetFloodingTest() {
        super(
            ImmutableList.of(Construction.setFromElements(CompactHashSet::create)),
            n -> n * log(n),
            ImmutableList.of(QueryOp.SET_CONTAINS));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMapValues.java

        return object != null && Iterators.contains(iterator(), object);
      }
    
      @Override
      boolean isPartialView() {
        return true;
      }
    
      @Override
      public ImmutableList<V> asList() {
        ImmutableList<Entry<K, V>> entryList = map.entrySet().asList();
        return new ImmutableAsList<V>() {
          @Override
          public V get(int index) {
            return entryList.get(index).getValue();
          }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

    import static com.google.common.collect.testing.google.ReflectionFreeAssertThrows.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.collect.testing.features.MapFeature;
    import java.util.Collection;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ParametricNullness.java

     *       typically because the type forbids nullable type arguments: For example, {@code
     *       ImmutableList.get} returns {@code E}, but that value is never {@code null}. (Accordingly,
     *       {@code ImmutableList} is declared to forbid {@code ImmutableList<@Nullable String>}.)
     *   <li>methods whose return type is a type variable but which can return {@code null} regardless
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 16:20:21 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterable<String> iterable2 = Iterables.unmodifiableIterable(iterable);
        assertSame(iterable, iterable2);
        ImmutableList<String> immutableList = ImmutableList.of("a", "b", "c");
        assertSame(immutableList, Iterables.unmodifiableIterable(immutableList));
        assertSame(immutableList, Iterables.unmodifiableIterable((List<String>) immutableList));
      }
    
      public void testFrequency_multiset() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
Back to top