package o; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* renamed from: o.piz, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C16613piz { public final List c = new ArrayList(); public final T c(Class cls) { Iterator it = this.c.iterator(); while (it.hasNext()) { T t = (T) it.next(); if (cls.isAssignableFrom(t.getClass())) { return t; } } return null; } public final String toString() { int size = this.c.size(); Object[] objArr = new Object[2]; objArr[0] = Integer.valueOf(size); objArr[1] = size == 1 ? "directory" : "directories"; return String.format("Metadata (%d %s)", objArr); } }