Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 368 for copyFor (0.09 sec)

  1. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

         */
        assertThat(ImmutableDoubleArray.copyOf(new double[0]))
            .isSameInstanceAs(ImmutableDoubleArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
        double[] array = new double[] {0, 1, 3};
        ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(array);
        array[2] = 2;
        assertThat(iia.asList()).containsExactly(0.0, 1.0, 3.0).inOrder();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteSource.java

        return concat(ImmutableList.copyOf(sources));
      }
    
      /**
       * Returns a view of the given byte array as a {@link ByteSource}. To view only a specific range
       * in the array, use {@code ByteSource.wrap(b).slice(offset, length)}.
       *
       * <p>Note that the given byte array may be passed directly to methods on, for example, {@code
       * OutputStream} (when {@code copyTo(OutputStream)} is called on the resulting {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/keymatch/ApiAdminKeymatchAction.java

        }
    
        protected EditBody createEditBody(final KeyMatch entity) {
            final EditBody body = new EditBody();
            copyBeanToBean(entity, body, copyOp -> {
                copyOp.excludeNull();
            });
            return body;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/role/ApiAdminRoleAction.java

        }
    
        protected EditBody createEditBody(final Role entity) {
            final EditBody body = new EditBody();
            copyBeanToBean(entity, body, copyOp -> {
                copyOp.excludeNull();
            });
            return body;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java

                if (o.isPresent()) {
                    had++;
                    items.addAll(o.get());
                }
            }
            return had == 0 ? Optional.empty() : Optional.of(List.copyOf(items));
        }
    
        protected Optional<Map<String, String>> collectMapIfPresentOrEmpty(
                Function<O, Optional<Map<String, String>>> getter) {
            int had = 0;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        ImmutableList<Cell<R, C, V>> cellList = ImmutableList.copyOf(cells);
        for (Cell<R, C, V> cell : cells) {
          rowSpaceBuilder.add(cell.getRowKey());
          columnSpaceBuilder.add(cell.getColumnKey());
        }
    
        ImmutableSet<R> rowSpace =
            (rowComparator == null)
                ? ImmutableSet.copyOf(rowSpaceBuilder)
                : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(rowComparator, rowSpaceBuilder));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java

                    this.profiles = profiles != null ? List.copyOf(profiles) : List.of();
                    this.activeProfileIds = activeProfileIds != null ? List.copyOf(activeProfileIds) : List.of();
                    this.inactiveProfileIds = inactiveProfileIds != null ? List.copyOf(inactiveProfileIds) : List.of();
                    this.systemProperties =
                            systemProperties != null ? Map.copyOf(systemProperties) : session.getSystemProperties();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 09 11:07:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

            if (stream(webProtocols).get(stream -> stream.anyMatch(s -> s.equals(prefix)))) {
                logger.debug("web protocols contains {}.", protocol);
                return;
            }
            webProtocols = Arrays.copyOf(webProtocols, webProtocols.length + 1);
            webProtocols[webProtocols.length - 1] = prefix;
        }
    
        public void addFileProtocol(final String protocol) {
            final String prefix = protocol + ":";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jun 19 01:34:15 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SparseImmutableTable.java

          rowBuilder.put(row.getKey(), ImmutableMap.copyOf(row.getValue()));
        }
        this.rowMap = rowBuilder.buildOrThrow();
    
        ImmutableMap.Builder<C, ImmutableMap<R, V>> columnBuilder =
            new ImmutableMap.Builder<>(columns.size());
        for (Entry<C, Map<R, V>> col : columns.entrySet()) {
          columnBuilder.put(col.getKey(), ImmutableMap.copyOf(col.getValue()));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

        Random random = new Random();
        while (set.size() < size) {
          set.add(random.nextInt());
        }
        List<Integer> list = new ArrayList<>(set);
        inputOrder.arrange(list);
        input = ImmutableList.copyOf(list);
      }
    
      @Benchmark
      int collections(int reps) {
        int dummy = 0;
        // Yes, this could be done more elegantly
        if (mutable) {
          for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top