Lines Matching refs:first
218 * Returns an unmodifiable list containing the specified first element and
229 * @param first the first element
233 public static <E> List<E> asList(@Nullable E first, E[] rest) {
234 return new OnePlusArrayList<E>(first, rest);
240 final E first;
243 OnePlusArrayList(@Nullable E first, E[] rest) {
244 this.first = first;
253 return (index == 0) ? first : rest[index - 1];
259 * Returns an unmodifiable list containing the specified first and second
270 * @param first the first element
276 @Nullable E first, @Nullable E second, E[] rest) {
277 return new TwoPlusArrayList<E>(first, second, rest);
283 final E first;
287 TwoPlusArrayList(@Nullable E first, @Nullable E second, E[] rest) {
288 this.first = first;
298 return first;