Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 8,503 for copyOf (0.21 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input);
        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfEmpty() {
        ArrayListMultimap<String, Integer> input = ArrayListMultimap.create();
        ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input);
        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java

            builder.put(entry.getKey(), entry.getValue());
          }
          return ImmutableBiMap.copyOf(builder);
        }
      }
    
      public static class ImmutableBiMapCopyOfEntriesGenerator extends TestStringBiMapGenerator {
        @Override
        protected BiMap<String, String> create(Entry<String, String>[] entries) {
          return ImmutableBiMap.copyOf(asList(entries));
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

      }
    
      static void testSort(int[] input, int[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedInts.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(int[] input, int from, int to, int[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedInts.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableRangeSet.java

       * ImmutableRangeSet}.
       *
       * @since 21.0
       */
      public ImmutableRangeSet<C> intersection(RangeSet<C> other) {
        RangeSet<C> copy = TreeRangeSet.create(this);
        copy.removeAll(other.complement());
        return copyOf(copy);
      }
    
      /**
       * Returns a new range set consisting of the difference of this range set and {@code other}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/ImmutableValueGraph.java

      private ImmutableValueGraph(ValueGraph<N, V> graph) {
        super(ValueGraphBuilder.from(graph), getNodeConnections(graph), graph.edges().size());
      }
    
      /** Returns an immutable copy of {@code graph}. */
      public static <N, V> ImmutableValueGraph<N, V> copyOf(ValueGraph<N, V> graph) {
        return (graph instanceof ImmutableValueGraph)
            ? (ImmutableValueGraph<N, V>) graph
            : new ImmutableValueGraph<N, V>(graph);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        ImmutableMap<String, Integer> copy =
            ImmutableMap.copyOf(Collections.<String, Integer>emptyMap());
        assertEquals(Collections.<String, Integer>emptyMap(), copy);
        assertSame(copy, ImmutableMap.copyOf(copy));
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableMap<String, Integer> copy = ImmutableMap.copyOf(singletonMap("one", 1));
        assertMapEquals(copy, "one", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

            assertThrows(IllegalArgumentException.class, () -> ImmutableRangeSet.copyOf(subset));
          } else {
            RangeSet<Integer> copy = ImmutableRangeSet.copyOf(subset);
            assertEquals(mutable, copy);
          }
    
          ImmutableRangeSet<Integer> built = builder.build();
          assertEquals(mutable, built);
          assertEquals(ImmutableRangeSet.copyOf(mutable), built);
          assertEquals(mutable.complement(), built.complement());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      }
    
      static void testSort(byte[] input, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedBytes.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(byte[] input, int from, int to, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedBytes.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

            builder.put(entry.getKey(), entry.getValue());
          }
          return ImmutableMap.copyOf(builder);
        }
      }
    
      public static class ImmutableMapCopyOfEntriesGenerator extends TestStringMapGenerator {
        @Override
        protected Map<String, String> create(Entry<String, String>[] entries) {
          return ImmutableMap.copyOf(asList(entries));
        }
      }
    
      public static class ImmutableMapUnhashableValuesGenerator
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/GraphsTest.java

        Graph<Integer> copy = copyOf(undirectedGraph);
        assertThat(copy).isEqualTo(undirectedGraph);
      }
    
      @Test
      public void copyOf_directedValueGraph() {
        ValueGraph<Integer, String> directedGraph = buildDirectedValueGraph();
    
        ValueGraph<Integer, String> copy = copyOf(directedGraph);
        assertThat(copy).isEqualTo(directedGraph);
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top