Package com.google.common.collect
Class CartesianList<E>
- All Implemented Interfaces:
Iterable<List<E>>,Collection<List<E>>,List<List<E>>,RandomAccess,SequencedCollection<List<E>>
Implementation of
Lists.cartesianProduct(List).-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) private intgetAxisIndexForProductIndex(int index, int axis) intintintsize()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, iterator, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
axes
-
axesSizeProduct
private final transient int[] axesSizeProduct
-
-
Constructor Details
-
CartesianList
CartesianList(ImmutableList<List<E>> axes)
-
-
Method Details
-
create
-
getAxisIndexForProductIndex
private int getAxisIndexForProductIndex(int index, int axis) -
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>- Overrides:
lastIndexOfin classAbstractList<List<E>>
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<List<E>>
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceList<E>- Overrides:
containsin classAbstractCollection<List<E>>
-