Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 368 for copyFor (0.09 sec)

  1. guava/src/com/google/common/collect/ImmutableCollection.java

     *   <li>Implementations can be generally assumed to prioritize memory efficiency, then speed of
     *       access, and lastly speed of creation.
     *   <li>The {@code copyOf} methods will sometimes recognize that the actual copy operation 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.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Files.java

       * @deprecated Prefer {@code asCharSource(from, charset).copyTo(to)}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asCharSource(from, charset).copyTo(to)",
          imports = "com.google.common.io.Files")
      public
      static void copy(File from, Charset charset, Appendable to) throws IOException {
        asCharSource(from, charset).copyTo(to);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. 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
    - 41.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

      @Before
      public void createSets() {
        wrappedSet = new HashSet<>();
        wrappedSet.add(1);
        wrappedSet.add(2);
        wrappedSet.add(3);
    
        copyOfWrappedSet = ImmutableSet.copyOf(wrappedSet);
        setToTest =
            InvalidatableSet.of(wrappedSet, () -> wrappedSet.contains(1), () -> 1 + "is not present");
      }
    
      @Test
      @SuppressWarnings("TruthSelfEquals")
      public void testEquals() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

      @Before
      public void createSets() {
        wrappedSet = new HashSet<>();
        wrappedSet.add(1);
        wrappedSet.add(2);
        wrappedSet.add(3);
    
        copyOfWrappedSet = ImmutableSet.copyOf(wrappedSet);
        setToTest =
            InvalidatableSet.of(wrappedSet, () -> wrappedSet.contains(1), () -> 1 + "is not present");
      }
    
      @Test
      @SuppressWarnings("TruthSelfEquals")
      public void testEquals() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/relatedquery/ApiAdminRelatedqueryAction.java

        }
    
        protected EditBody createEditBody(final RelatedQuery entity) {
            final EditBody body = new EditBody();
            copyBeanToBean(entity, body, copyOp -> {
                copyOp.excludeNull();
                copyOp.exclude(Constants.QUERIES);
            });
            body.queries = stream(entity.getQueries()).get(stream -> stream.filter(StringUtil::isNotBlank).collect(Collectors.joining("\n")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/FluentIterable.java

        return ImmutableSortedSet.copyOf(comparator, (Iterable<@NonNull E>) getDelegate());
      }
    
      /**
       * Returns an {@code ImmutableMultiset} containing all of the elements from this fluent iterable.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code ImmutableMultiset.copyOf(stream.iterator())}, or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        ParameterizedType returnType = (ParameterizedType) factory.getReturnType().getType();
        assertEquals(type, returnType.getRawType());
        assertEquals(
            ImmutableList.copyOf(type.getTypeParameters()),
            ImmutableList.copyOf(returnType.getActualTypeArguments()));
      }
    
      public void testConstructor_exceptionTypes() throws Exception {
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/InvokableTest.java

        ParameterizedType returnType = (ParameterizedType) factory.getReturnType().getType();
        assertEquals(type, returnType.getRawType());
        assertEquals(
            ImmutableList.copyOf(type.getTypeParameters()),
            ImmutableList.copyOf(returnType.getActualTypeArguments()));
      }
    
      public void testConstructor_exceptionTypes() throws Exception {
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top