Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CollectionMapper (0.19 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/CollectionMapper.java

    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.Map;
    import java.util.TreeMap;
    import java.util.TreeSet;
    
    class CollectionMapper {
        Collection<Object> createEmptyCollection(Class<?> collectionType) {
            if (collectionType.equals(DomainObjectSet.class)) {
                return new ArrayList<Object>();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/CollectionMapperTest.groovy

     */
    
    package org.gradle.tooling.internal.adapter
    
    import org.gradle.tooling.model.DomainObjectSet
    import spock.lang.Specification
    
    class CollectionMapperTest extends Specification {
        final def mapper = new CollectionMapper()
    
        def "maps collection types"() {
            expect:
            def collection = mapper.createEmptyCollection(sourceType)
            collection.class == collectionType
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

        private static final ReflectionMethodInvoker REFLECTION_METHOD_INVOKER = new ReflectionMethodInvoker();
        private static final TypeInspector TYPE_INSPECTOR = new TypeInspector();
        private static final CollectionMapper COLLECTION_MAPPER = new CollectionMapper();
        private static final Object[] EMPTY = new Object[0];
        private static final Class[] EMPTY_CLASS_ARRAY = new Class[0];
        private static final Method EQUALS_METHOD;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
Back to top