Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 8,503 for copyOf (0.12 sec)

  1. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      @After
      public final void validateGraphState() {
        validateGraph(graph);
      }
    
      static <N> void validateGraph(Graph<N> graph) {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableGraph.copyOf(graph));
    
        String graphString = graph.toString();
        assertThat(graphString).contains("isDirected: " + graph.isDirected());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

                .inOrder();
          }
        }
      }
    
      private static <E> Set<E> set(E... elements) {
        return ImmutableSet.copyOf(elements);
      }
    
      private static <E> List<E> list(E... elements) {
        return ImmutableList.copyOf(elements);
      }
    
      /**
       * Utility method to verify that the given LinkedHashSet is equal to and hashes identically to a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      /**
       * Not supported. Use {@code ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...))}.
       *
       * @deprecated Use {@code ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...))}.
       */
      @DoNotCall("ImmutableSortedMap.ofEntries not currently available; use ImmutableSortedMap.copyOf")
      @Deprecated
      @SafeVarargs
      public static <K, V> ImmutableSortedMap<K, V> ofEntries(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        for (int size = 2; size < 16; size++) {
          for (int attempts = 0; attempts < size * (size - 1); attempts++) {
            ArrayList<Integer> elements = createOrderedList(size);
            List<Integer> expected = ImmutableList.copyOf(elements);
            MinMaxPriorityQueue<Integer> q = MinMaxPriorityQueue.create();
            long seed = insertRandomly(elements, q);
            while (!q.isEmpty()) {
              elements.add(q.pollFirst());
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java

      }
    
      static <N, E> UndirectedNetworkConnections<N, E> ofImmutable(Map<E, N> incidentEdges) {
        return new UndirectedNetworkConnections<>(ImmutableBiMap.copyOf(incidentEdges));
      }
    
      @Override
      public Set<N> adjacentNodes() {
        return Collections.unmodifiableSet(((BiMap<E, N>) incidentEdgeMap).values());
      }
    
      @Override
      public Set<E> edgesConnecting(N node) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        return copyOf(multimap, null);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

            to.context = from.context;
            if ( from.hashesExternal ) {
                to.hashesExternal = true;
                to.ansiHash = from.ansiHash != null ? Arrays.copyOf(from.ansiHash, from.ansiHash.length) : null;
                to.unicodeHash = from.unicodeHash != null ? Arrays.copyOf(from.unicodeHash, from.unicodeHash.length) : null;
            }
            else {
                NtlmPasswordAuthenticator.cloneInternal(to, from);
            }
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/TestOutputStream.java

        this(out, Arrays.asList(options));
      }
    
      public TestOutputStream(OutputStream out, Iterable<TestOption> options) throws IOException {
        super(checkNotNull(out));
        this.options = ImmutableSet.copyOf(options);
        throwIf(OPEN_THROWS);
      }
    
      public boolean closed() {
        return closed;
      }
    
      @Override
      public void write(byte[] b, int off, int len) throws IOException {
        throwIf(closed);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilderException.java

        public SettingsBuilderException(String message, List<BuilderProblem> problems) {
            super(message + ": " + problems.stream().map(BuilderProblem::toString).collect(Collectors.joining(", ")), null);
            this.problems = List.copyOf(problems);
        }
    
        public List<BuilderProblem> getProblems() {
            return problems;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderException.java

        public ToolchainsBuilderException(String message, List<BuilderProblem> problems) {
            super(message + ": " + problems.stream().map(BuilderProblem::toString).collect(Collectors.joining(", ")), null);
            this.problems = List.copyOf(problems);
        }
    
        public List<BuilderProblem> getProblems() {
            return problems;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top