Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Kasper (0.2 sec)

  1. maven-core/src/main/java/org/apache/maven/internal/impl/MappedCollection.java

    public class MappedCollection<U, V> extends AbstractCollection<U> {
        private final Collection<V> list;
        private final Function<V, U> mapper;
    
        public MappedCollection(Collection<V> list, Function<V, U> mapper) {
            this.list = list;
            this.mapper = mapper;
        }
    
        @Override
        public Iterator<U> iterator() {
            Iterator<V> it = list.iterator();
            return new Iterator<U>() {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Tue Nov 22 13:26:01 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/MappedCollection.java

    public class MappedCollection<U, V> extends AbstractCollection<U> {
        private final Collection<V> list;
        private final Function<V, U> mapper;
    
        public MappedCollection(Collection<V> list, Function<V, U> mapper) {
            this.list = list;
            this.mapper = mapper;
        }
    
        @Override
        public Iterator<U> iterator() {
            Iterator<V> it = list.iterator();
            return new Iterator<U>() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/internal/impl/Utils.java

            }
            return clazz.cast(o);
        }
    
        static <U, V> List<V> map(Collection<U> list, Function<U, V> mapper) {
            return list.stream().map(mapper).collect(Collectors.toList());
        }
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 07 20:05:02 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/MappedList.java

    public class MappedList<U, V> extends AbstractList<U> {
        private final List<V> list;
        private final Function<V, U> mapper;
    
        public MappedList(List<V> list, Function<V, U> mapper) {
            this.list = list;
            this.mapper = mapper;
        }
    
        @Override
        public U get(int index) {
            return mapper.apply(list.get(index));
        }
    
        @Override
        public int size() {
            return list.size();
        }
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Tue Nov 22 13:26:01 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/Utils.java

            }
            return clazz.cast(o);
        }
    
        static <U, V> List<V> map(Collection<U> list, Function<U, V> mapper) {
            return list.stream().map(mapper).collect(Collectors.toList());
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/MappedList.java

    public class MappedList<U, V> extends AbstractList<U> {
        private final List<V> list;
        private final Function<V, U> mapper;
    
        public MappedList(List<V> list, Function<V, U> mapper) {
            this.list = list;
            this.mapper = mapper;
        }
    
        @Override
        public U get(int index) {
            return mapper.apply(list.get(index));
        }
    
        @Override
        public int size() {
            return list.size();
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultPluginConfigurationExpander.java

                    return plugin;
                }
            });
        }
    
        static <T> List<T> map(List<T> list, Function<T, T> mapper) {
            List<T> newList = list;
            for (int i = 0; i < newList.size(); i++) {
                T oldT = newList.get(i);
                T newT = mapper.apply(oldT);
                if (newT != oldT) {
                    if (newList == list) {
                        newList = new ArrayList<>(list);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelPathTranslator.java

            }
            return model;
        }
    
        private <T> List<T> map(List<T> resources, Function<T, T> mapper) {
            List<T> newResources = null;
            if (resources != null) {
                for (int i = 0; i < resources.size(); i++) {
                    T resource = resources.get(i);
                    T newResource = mapper.apply(resource);
                    if (newResource != null) {
                        if (newResources == null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxerTest.java

            final ThreadOutputMuxer threadOutputMuxer = new ThreadOutputMuxer(projectBuildList, systemOut);
    
            final List<String> stringList = Arrays.asList(
                    "Thinkin", "of", "a", "master", "plan", "Cuz", "ain’t", "nuthin", "but", "sweat", "inside", "my",
                    "hand");
            Iterator<String> lyrics = stringList.iterator();
    
            ExecutorService executor = Executors.newFixedThreadPool(10);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 6.6K bytes
    - Viewed (0)
Back to top