Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1251 - 1260 of 6,020 for new1 (0.02 seconds)

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

    @GwtCompatible
    public final class HashMultiset<E extends @Nullable Object> extends AbstractMapBasedMultiset<E> {
    
      /** Creates a new, empty {@code HashMultiset} using the default initial capacity. */
      public static <E extends @Nullable Object> HashMultiset<E> create() {
        return new HashMultiset<>();
      }
    
      /**
       * Creates a new, empty {@code HashMultiset} with the specified expected number of distinct
       * elements.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                wagon.connect(new Repository(repository.getId(), repository.getUrl()), proxyInfo(repository));
            } else {
                wagon.connect(new Repository(repository.getId(), repository.getUrl()));
            }
        }
    
        private AuthenticationInfo authenticationInfo(ArtifactRepository repository) {
            AuthenticationInfo ai = new AuthenticationInfo();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  3. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        private final transient ConcurrentMap<E, Integer> countMap;
    
        /**
         * Creates a new, empty {@code OldConcurrentHashMultiset} using the default initial capacity,
         * load factor, and concurrency settings.
         */
        static <E> OldConcurrentHashMultiset<E> create() {
          return new OldConcurrentHashMultiset<E>(new ConcurrentHashMap<E, Integer>());
        }
    
        @VisibleForTesting
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

        List<String> haveSameHashes2 = asList(str1, str2);
        List<CountsHashCodeAndEquals> result =
            new ArrayList<>(
                transform(
                    cartesianProduct(nCopies(power, haveSameHashes2)),
                    strs ->
                        new CountsHashCodeAndEquals(
                            String.join("", strs),
                            () -> counter.hashCode++,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 9K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

          return new String[length];
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      @AndroidIncompatible // test-suite builders
      public static Test suite() {
        TestSuite suite = new TestSuite();
        suite.addTest(
            BiMapTestSuiteBuilder.using(new EnumHashBiMapGenerator())
                .named("EnumHashBiMap")
                .withFeatures(
                    CollectionSize.ANY,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

        private InheritanceAssembler assembler;
    
        @BeforeEach
        void setUp() throws Exception {
            reader = new DefaultModelReader();
            writer = new DefaultModelWriter();
            assembler = new DefaultInheritanceAssembler();
        }
    
        private File getPom(String name) {
            return new File("src/test/resources/poms/inheritance/" + name + ".xml");
        }
    
        private Model getModel(String name) throws IOException {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

        @Override
        public Map<String, String> getUserProperties() {
            return Collections.unmodifiableMap(new PropertiesAsMap(getMavenSession().getUserProperties()));
        }
    
        @Nonnull
        @Override
        public Map<String, String> getSystemProperties() {
            return Collections.unmodifiableMap(new PropertiesAsMap(getMavenSession().getSystemProperties()));
        }
    
        @Nonnull
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  8. compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java

        }
    
        @Test
        void testEqualsNullSafe() {
            assertNotEquals(null, new Model());
    
            new Model().equals(new Model());
        }
    
        @Test
        void testEqualsIdentity() {
            Model thing = new Model();
            assertEquals(thing, thing);
        }
    
        @Test
        void testToStringNullSafe() {
            assertNotNull(new Model().toString());
        }
    
        @Test
        void testPropertiesClear() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 08:09:30 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java

            return new Result<>(true, model, problems);
        }
    
        /**
         * New result - determine whether error or success by checking problems for errors
         *
         * @param model
         * @param problems
         */
        public static <T> Result<T> newResult(T model, Iterable<? extends ModelProblem> problems) {
            return new Result<>(hasErrors(problems), model, problems);
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Mar 26 19:31:34 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Lifecycles.java

    public class Lifecycles {
    
        static Lifecycle.Phase phase(String name) {
            return new DefaultPhase(name, Collections.emptyList(), Collections.emptyList(), Collections.emptyList());
        }
    
        static Lifecycle.Phase phase(String name, Lifecycle.Phase... phases) {
            return new DefaultPhase(name, Collections.emptyList(), Collections.emptyList(), asList(phases));
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 28 15:21:19 GMT 2025
    - 8.4K bytes
    - Click Count (0)
Back to Top