package p054r1;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import p009c1.C0502g;
import p039m1.C1470g;

/* renamed from: r1.g */
/* loaded from: classes.dex */
public class C1602g extends C1601f {
    /* renamed from: c */
    public static final <T, C extends Collection<? super T>> C m806c(InterfaceC1596b<? extends T> interfaceC1596b, C c) {
        C1470g.m1292e(interfaceC1596b, "<this>");
        C1470g.m1292e(c, "destination");
        for (T t : interfaceC1596b) {
            c.add(t);
        }
        return c;
    }

    /* renamed from: d */
    public static final <T> List<T> m805d(InterfaceC1596b<? extends T> interfaceC1596b) {
        C1470g.m1292e(interfaceC1596b, "<this>");
        return C0502g.m3607d(m804e(interfaceC1596b));
    }

    /* renamed from: e */
    public static final <T> List<T> m804e(InterfaceC1596b<? extends T> interfaceC1596b) {
        C1470g.m1292e(interfaceC1596b, "<this>");
        return (List) m806c(interfaceC1596b, new ArrayList());
    }
}