Lines Matching defs:of

6  * under the terms of the GNU General Public License version 2 only, as
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * You should have received a copy of the GNU General Public License version
38 * immutable, the only exception being the incremental construction of
46 * <p><b>This is NOT part of any supported API.
53 /** The first element of the list, supposed to be immutable.
57 /** The remainder of the list except for its first element, supposed
86 /** Construct a list consisting of given element.
88 public static <A> List<A> of(A x1) {
92 /** Construct a list consisting of given elements.
94 public static <A> List<A> of(A x1, A x2) {
95 return new List<A>(x1, of(x2));
98 /** Construct a list consisting of given elements.
100 public static <A> List<A> of(A x1, A x2, A x3) {
101 return new List<A>(x1, of(x2, x3));
104 /** Construct a list consisting of given elements.
107 public static <A> List<A> of(A x1, A x2, A x3, A... rest) {
112 * Construct a list consisting all elements of given array.
123 /** Construct a list consisting of a given number of identical elements.
124 * @param len The number of elements in the list.
125 * @param init The value of each element.
148 /** Return the number of elements in this list.
170 /** Prepend given element to front of list, forming and returning
177 /** Prepend given list of elements to front of list, forming and returning
189 // individual List objects, instead of allocating new ones.
218 return of(x).prependList(this);
236 /** Copy successive elements of this list into given vector until
237 * list is exhausted or end of vector is reached.