Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 618 for copyBuf (0.24 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSortedSet.copyOf(elements);
        }
      }
    
      public static class ImmutableSortedSetHeadsetGenerator extends TestStringSortedSetGenerator {
        @Override
        protected SortedSet<String> create(String[] elements) {
          List<String> list = Lists.newArrayList(elements);
          list.add("zzz");
          return ImmutableSortedSet.copyOf(list).headSet("zzy");
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

         */
        assertThat(ImmutableIntArray.copyOf(new int[0])).isSameInstanceAs(ImmutableIntArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
        int[] array = new int[] {0, 1, 3};
        ImmutableIntArray iia = ImmutableIntArray.copyOf(array);
        array[2] = 2;
        assertThat(iia.asList()).containsExactly(0, 1, 3).inOrder();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

       * is unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
       * once. This reduces the expense of habitually making defensive copies at API boundaries.
       * However, the precise conditions for skipping the copy operation are undefined.
       *
       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/SortedMapDiffUtilTest.groovy

        }
    
        private static Map diff(List<String> previous, List<String> current) {
            SortedMap<String, String> previousMap = ImmutableSortedMap.copyOf(previous.collectEntries { [(it): 'previous' + it] })
            SortedMap<String, String> currentMap = ImmutableSortedMap.copyOf(current.collectEntries { [(it): 'current' + it] })
    
            Map result = [added: [], removed: [], updated: []]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeDirectivesSerializer.java

        }
    
        @Override
        public IncludeDirectives read(Decoder decoder) throws Exception {
            return DefaultIncludeDirectives.of(ImmutableList.copyOf(includeListSerializer.read(decoder)), ImmutableList.copyOf(macroListSerializer.read(decoder)), ImmutableList.copyOf(macroFunctionListSerializer.read(decoder)));
        }
    
        @Override
        public void write(Encoder encoder, IncludeDirectives value) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSortedSet.java

       */
      public static <E> ImmutableSortedSet<E> copyOf(
          Comparator<? super E> comparator, Collection<? extends E> elements) {
        return copyOf(comparator, (Iterable<? extends E>) elements);
      }
    
      /**
       * Returns an immutable sorted set containing the elements of a sorted set, sorted by the same
       * {@code Comparator}. That behavior differs from {@link #copyOf(Iterable)}, which always uses the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  7. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/component/ConfigurationSoftwareComponentVariant.java

                this.capabilities = ImmutableSet.copyOf(Configurations.collectCapabilities(configuration,
                    new HashSet<>(),
                    new HashSet<>()));
            }
            return capabilities;
        }
    
        @Override
        public Set<ExcludeRule> getGlobalExcludes() {
            if (excludeRules == null) {
                this.excludeRules = ImmutableSet.copyOf(((ConfigurationInternal) configuration).getAllExcludeRules());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/descriptor/DefaultExclude.java

            this.configurations = ImmutableSet.copyOf(configurations);
        }
    
        public DefaultExclude(ModuleIdentifier id, String[] configurations, @Nullable String patternMatcher) {
            this.moduleId = id;
            this.artifact = null;
            this.patternMatcher = patternMatcher;
            this.configurations = ImmutableSet.copyOf(configurations);
        }
    
        public DefaultExclude(ModuleIdentifier id) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableList.java

       * {@link Collection}, this method behaves exactly as {@link #copyOf(Collection)}; otherwise, it
       * behaves exactly as {@code copyOf(elements.iterator()}.
       *
       * @throws NullPointerException if {@code elements} contains a null element
       */
      public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
        checkNotNull(elements); // TODO(kevinb): is this here only for GWT?
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/ImmutableIntArray.java

      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableIntArray copyOf(int[] values) {
        return values.length == 0 ? EMPTY : new ImmutableIntArray(Arrays.copyOf(values, values.length));
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableIntArray copyOf(Collection<Integer> values) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 20.9K bytes
    - Viewed (0)
Back to top