/guava/guava/src/com/google/common/collect/Collections2.java
this.comparator = comparator; this.inputList = ImmutableList.sortedCopyOf( comparator, input) ;
this.inputList = ImmutableList.sortedCopyOf ( comparator, input ) ; this.comparator = comparator;
} private static final class OrderedPermutationCollection<E> extends AbstractCollection<List<E>> { final ImmutableList<E> inputList; final Comparator<? super E> comparator; final int size; OrderedPermutationCollection(Iterable<E> input, Comparator<? super E> comparator) { <extra_id_0> this.size = calculateSize(inputList, comparator); } private static <E> int calculateSize( List<E> sortedInputList, Comparator<? super E> comparator) { int permutations = 1; int n = 1;