equal
deleted
inserted
replaced
39 * deletion without notice.</b> |
39 * deletion without notice.</b> |
40 */ |
40 */ |
41 public class ListBuffer<A> extends AbstractQueue<A> { |
41 public class ListBuffer<A> extends AbstractQueue<A> { |
42 |
42 |
43 public static <T> ListBuffer<T> of(T x) { |
43 public static <T> ListBuffer<T> of(T x) { |
44 ListBuffer<T> lb = new ListBuffer<T>(); |
44 ListBuffer<T> lb = new ListBuffer<>(); |
45 lb.add(x); |
45 lb.add(x); |
46 return lb; |
46 return lb; |
47 } |
47 } |
48 |
48 |
49 /** The list of elements of this buffer. |
49 /** The list of elements of this buffer. |