Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for original (0.16 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        assertSame(Ordering.natural(), copy.comparator());
      }
    
      public void testCopyOf() {
        Map<String, Integer> original = new LinkedHashMap<>();
        original.put("one", 1);
        original.put("two", 2);
        original.put("three", 3);
    
        ImmutableSortedMap<String, Integer> copy = ImmutableSortedMap.copyOf(original);
        assertMapEquals(copy, "one", 1, "three", 3, "two", 2);
        assertSame(copy, ImmutableSortedMap.copyOf(copy));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java

        }
    
        private ProjectModelResolver(ProjectModelResolver original) {
            this.session = original.session;
            this.trace = original.trace;
            this.resolver = original.resolver;
            this.remoteRepositoryManager = original.remoteRepositoryManager;
            this.pomRepositories = new ArrayList<>(original.pomRepositories);
            this.externalRepositories = original.externalRepositories;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Collections2.java

       * <p>This method is equivalent to {@code Collections2.orderedPermutations(list,
       * Ordering.natural())}.
       *
       * @param elements the original iterable whose elements have to be permuted.
       * @return an immutable {@link Collection} containing all the different permutations of the
       *     original iterable.
       * @throws NullPointerException if the specified iterable is null or has any null elements.
       * @since 12.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/SuppliersTest.java

        assertThat(memoizedSupplier.toString()).isEqualTo("Suppliers.memoize(CountingSupplier)");
        checkMemoize(countingSupplier, memoizedSupplier);
        // Calls to the original memoized supplier shouldn't affect its copy.
        Object unused = memoizedSupplier.get();
        assertThat(memoizedSupplier.toString())
            .isEqualTo("Suppliers.memoize(<supplier that returned 10>)");
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        assertThat(memoizedSupplier.toString()).isEqualTo("Suppliers.memoize(CountingSupplier)");
        checkMemoize(countingSupplier, memoizedSupplier);
        // Calls to the original memoized supplier shouldn't affect its copy.
        Object unused = memoizedSupplier.get();
        assertThat(memoizedSupplier.toString())
            .isEqualTo("Suppliers.memoize(<supplier that returned 10>)");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testCreateCopy() {
        TreeBasedTable<String, Integer, Character> original =
            TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        original.put("foo", 3, 'a');
        original.put("foo", 12, 'b');
        original.put("bar", 5, 'c');
        original.put("cat", 8, 'd');
        table = TreeBasedTable.create(original);
        assertThat(table.rowKeySet()).containsExactly("foo", "cat", "bar").inOrder();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedSet.java

        if (hasSameComparator && (elements instanceof ImmutableSortedSet)) {
          @SuppressWarnings("unchecked")
          ImmutableSortedSet<E> original = (ImmutableSortedSet<E>) elements;
          if (!original.isPartialView()) {
            return original;
          }
        }
        @SuppressWarnings("unchecked") // elements only contains E's; it's safe.
        E[] array = (E[]) Iterables.toArray(elements);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Converter.java

      }
    
      private static final class ReverseConverter<A, B> extends Converter<B, A>
          implements Serializable {
        final Converter<A, B> original;
    
        ReverseConverter(Converter<A, B> original) {
          this.original = original;
        }
    
        /*
         * These gymnastics are a little confusing. Basically this class has neither legacy nor
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                ArtifactRepository original = createArtifactRepository(
                        repository.getId(),
                        repository.getUrl(),
                        repository.getLayout(),
                        repository.getSnapshots(),
                        repository.getReleases());
    
                repository.setMirroredRepositories(Collections.singletonList(original));
    
                repository.setId(mirror.getId());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 31.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testCreateCopy() {
        TreeBasedTable<String, Integer, Character> original =
            TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        original.put("foo", 3, 'a');
        original.put("foo", 12, 'b');
        original.put("bar", 5, 'c');
        original.put("cat", 8, 'd');
        table = TreeBasedTable.create(original);
        assertThat(table.rowKeySet()).containsExactly("foo", "cat", "bar").inOrder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top