(final Object first, final Object second, final Object[] rest)
| 499 | } |
| 500 | |
| 501 | private static Iterable<Object> iterable(final Object first, final Object second, final Object[] rest) { |
| 502 | checkNotNull(rest); |
| 503 | return new AbstractList<Object>() { |
| 504 | @Override |
| 505 | public int size() { |
| 506 | return rest.length + 2; |
| 507 | } |
| 508 | |
| 509 | @Override |
| 510 | public Object get(int index) { |
| 511 | switch (index) { |
| 512 | case 0: |
| 513 | return first; |
| 514 | case 1: |
| 515 | return second; |
| 516 | default: |
| 517 | return rest[index - 2]; |
| 518 | } |
| 519 | } |
| 520 | }; |
| 521 | } |
| 522 | } |
no test coverage detected