Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 3,211 for List (0.02 sec)

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

          }
        };
      }
    
      static <E extends @Nullable Object> List<E> castOrCopyToList(Iterable<E> iterable) {
        if (iterable instanceof List) {
          return (List<E>) iterable;
        }
        List<E> list = new ArrayList<>();
        for (E e : iterable) {
          list.add(e);
        }
        return list;
      }
    
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

        checkNotNull(equalityGroup);
        List<Object> list = new ArrayList<>(equalityGroup.length);
        for (int i = 0; i < equalityGroup.length; i++) {
          Object element = equalityGroup[i];
          if (element == null) {
            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ClassMetaData.java

        private final boolean isGroovy;
        private final List<String> imports = new ArrayList<String>();
        private final List<String> interfaceNames = new ArrayList<String>();
        private final Map<String, PropertyMetaData> declaredProperties = new HashMap<String, PropertyMetaData>();
        private final Set<MethodMetaData> declaredMethods = new HashSet<MethodMetaData>();
        private final List<String> innerClassNames = new ArrayList<String>();
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 10.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          // don't let the entries get GCed
          List<Entry<Object, Object>> unused = warmUp(cache);
          assertEquals(WARMUP_SIZE, cache.size());
          assertMapSize(cache.asMap(), WARMUP_SIZE);
          checkValidState(cache);
        }
      }
    
      public void testContainsKey_found() {
        for (LoadingCache<Object, Object> cache : caches()) {
          // don't let the entries get GCed
          List<Entry<Object, Object>> warmed = warmUp(cache);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilderException.java

        private final List<BuilderProblem> problems;
    
        /**
         * @param message the message to give
         * @param e the {@link Exception}
         */
        public SettingsBuilderException(String message, Exception e) {
            super(message, e);
            this.problems = List.of();
        }
    
        public SettingsBuilderException(String message, List<BuilderProblem> problems) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderException.java

        private final List<BuilderProblem> problems;
    
        /**
         * @param message the message to give
         * @param e the {@link Exception}
         */
        public ToolchainsBuilderException(String message, Exception e) {
            super(message, e);
            this.problems = List.of();
        }
    
        public ToolchainsBuilderException(String message, List<BuilderProblem> problems) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/features/ListFeature.java

    import java.lang.annotation.RetentionPolicy;
    import java.util.List;
    import java.util.Set;
    
    /**
     * Optional features of classes derived from {@code List}.
     *
     * @author George van den Driessche
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    public enum ListFeature implements Feature<List> {
      SUPPORTS_SET,
      SUPPORTS_ADD_WITH_INDEX(CollectionFeature.SUPPORTS_ADD),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                    @SuppressWarnings("unchecked")
                    // we dangerously assume E is a string
                    List<E> extremeValues = (List<E>) getExtremeValues();
                    @SuppressWarnings("unchecked")
                    // map generators must past entry objects
                    List<E> normalValues = (List<E>) asList(entries);
    
                    // prepare extreme values to be filtered out of view
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      E[] createArray(int length);
    
      /**
       * Returns the iteration ordering of elements, given the order in which they were added to the
       * container. This method may return the original list unchanged, the original list modified in
       * place, or a different list.
       *
       * <p>If the order is non-deterministic, as with {@link java.util.HashSet}, this method can return
       * its input unmodified. Provided that the test suite is built without {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecryptionRequest.java

        }
    
        @Override
        public List<Server> getServers() {
            if (servers == null) {
                servers = new ArrayList<>();
            }
    
            return servers;
        }
    
        @Override
        public DefaultSettingsDecryptionRequest setServers(List<Server> servers) {
            this.servers = servers;
    
            return this;
        }
    
        @Override
        public List<Proxy> getProxies() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top