public boolean offer(final A a) { append(a); return true; }
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(); }
/** * Append all elements in an array to buffer. */ public ListBuffer<A> appendArray(final A[] xs) { for (final A x : xs) { append(x); } return this; }
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(); }
public boolean addAll(final Collection<? extends A> c) { for (final A a : c) { append(a); } return true; }
public boolean add(final A a) { append(a); return true; }
public boolean offer(final A a) { append(a); return true; }
/** * Append all elements in an array to buffer. */ public ListBuffer<A> appendArray(final A[] xs) { for (final A x : xs) { append(x); } return this; }
public boolean addAll(final Collection<? extends A> c) { for (final A a : c) { append(a); } return true; }
/** * Append all elements in an array to buffer. */ public ListBuffer<A> appendArray(final A[] xs) { for (final A x : xs) { append(x); } return this; }
public boolean addAll(final Collection<? extends A> c) { for (final A a : c) { append(a); } return true; }
public boolean offer(final A a) { append(a); return true; }
public boolean add(final A a) { append(a); return true; }
public boolean add(final A a) { append(a); return true; }
/** * Append all elements in a list to buffer. */ public ListBuffer<A> appendList(ImmutableList<A> xs) { while (xs.nonEmpty()) { append(xs.head); xs = xs.tail; } return this; }
/** * Append all elements in a list to buffer. */ public ListBuffer<A> appendList(ImmutableList<A> xs) { while (xs.nonEmpty()) { append(xs.head); xs = xs.tail; } return this; }
/** * Append all elements in a list to buffer. */ public ListBuffer<A> appendList(ImmutableList<A> xs) { while (xs.nonEmpty()) { append(xs.head); xs = xs.tail; } return this; }
private static TypeList freshTypeVariables(final TypeList types) { final ListBuffer<Type<?>> result = lb(); for (final Type t : types) { if (t.isWildcardType()) { final Type bound = t.getExtendsBound(); result.append(new CapturedType(Type.Bottom, bound, Type.Bottom, t)); } else { result.append(t); } } return new TypeList(result.toList()); }
private static TypeList freshTypeVariables(final TypeList types) { final ListBuffer<Type<?>> result = lb(); for (final Type t : types) { if (t.isWildcardType()) { final Type bound = t.getExtendsBound(); result.append(new CapturedType(Type.Bottom, bound, Type.Bottom, t)); } else { result.append(t); } } return new TypeList(result.toList()); }
private static TypeList freshTypeVariables(final TypeList types) { final ListBuffer<Type<?>> result = lb(); for (final Type t : types) { if (t.isWildcardType()) { final Type bound = t.getExtendsBound(); result.append(new CapturedType(Type.Bottom, bound, Type.Bottom, t)); } else { result.append(t); } } return new TypeList(result.toList()); }