MCPcopy Create free account
hub / github.com/antlr/codebuff / iterable

Method iterable

output/java_guava/1.4.17/Joiner.java:501–521  ·  view source on GitHub ↗
(final Object first, final Object second, final Object[] rest)

Source from the content-addressed store, hash-verified

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}

Callers 2

appendToMethod · 0.95
joinMethod · 0.95

Calls 1

checkNotNullMethod · 0.45

Tested by

no test coverage detected