/** * Append all elements in a list to buffer. */ public ListBuffer<A> appendList(final ListBuffer<A> xs) { return appendList(xs.toList()); }
/** * Append all elements in a list to buffer. */ public ListBuffer<A> appendList(final ListBuffer<A> xs) { return appendList(xs.toList()); }
/** * Append all elements in a list to buffer. */ public ListBuffer<A> appendList(final ListBuffer<A> xs) { return appendList(xs.toList()); }
private static ImmutableList<Type<?>> closureMin(ImmutableList<Type<?>> cl) { final ListBuffer<Type<?>> classes = lb(); final ListBuffer<Type<?>> interfaces = lb(); while (!cl.isEmpty()) { final Type current = cl.head; if (current.isInterface()) { interfaces.append(current); } else { classes.append(current); } final ListBuffer<Type<?>> candidates = lb(); for (final Type t : cl.tail) { if (!isSubtypeNoCapture(current, t)) { candidates.append(t); } } cl = candidates.toList(); } return classes.appendList(interfaces).toList(); }
private static ImmutableList<Type<?>> closureMin(ImmutableList<Type<?>> cl) { final ListBuffer<Type<?>> classes = lb(); final ListBuffer<Type<?>> interfaces = lb(); while (!cl.isEmpty()) { final Type current = cl.head; if (current.isInterface()) { interfaces.append(current); } else { classes.append(current); } final ListBuffer<Type<?>> candidates = lb(); for (final Type t : cl.tail) { if (!isSubtypeNoCapture(current, t)) { candidates.append(t); } } cl = candidates.toList(); } return classes.appendList(interfaces).toList(); }
private static ImmutableList<Type<?>> closureMin(ImmutableList<Type<?>> cl) { final ListBuffer<Type<?>> classes = lb(); final ListBuffer<Type<?>> interfaces = lb(); while (!cl.isEmpty()) { final Type current = cl.head; if (current.isInterface()) { interfaces.append(current); } else { classes.append(current); } final ListBuffer<Type<?>> candidates = lb(); for (final Type t : cl.tail) { if (!isSubtypeNoCapture(current, t)) { candidates.append(t); } } cl = candidates.toList(); } return classes.appendList(interfaces).toList(); }