Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 300 for copy_off (0.08 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/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
    - 23.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/TestByteSink.java

      private final ImmutableSet<TestOption> options;
    
      private boolean outputStreamOpened;
      private boolean outputStreamClosed;
    
      public TestByteSink(TestOption... options) {
        this.options = ImmutableSet.copyOf(options);
      }
    
      byte[] getBytes() {
        return bytes.toByteArray();
      }
    
      @Override
      public boolean wasStreamOpened() {
        return outputStreamOpened;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 15 13:47:32 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/ConverterTest.java

        assertEquals(LONGS, ImmutableList.copyOf(convertedValues));
      }
    
      public void testConvertAllIsView() {
        List<String> mutableList = Lists.newArrayList("789", "123");
        Iterable<Long> convertedValues = STR_TO_LONG.convertAll(mutableList);
        assertEquals(ImmutableList.of(789L, 123L), ImmutableList.copyOf(convertedValues));
    
        Iterator<Long> iterator = convertedValues.iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top