Returns a new TupleList where every tuple is the inverse of the
tuples in this list. Note the order of the tuples within the
list will not change, this will only affect the tuples themselves.
Returns a new TupleList that will contain all tuples from this
list, followed by all tuples from other. This method is
different from ForwardingCollection.addAll(Collection) in that it does not
modify the current list, and instead always creates and returns a new
TupleList instance.
Creates a new TupleList that contains the same elements as this
one, but does not allow modification. Attempting to modify the contents
will result in an UnsupportedOperationException.
Factory method that creates a mutable TupleList from an
existing stream of tuples.
fromMap
public static<L,R>TupleList<L,R>fromMap(Map<L,R> values)
Factory method that creates a mutable TupleList from a map.
The map keys will act as the left element in each tuple, with the
corresponding values acting as the right element.
combine
public static<L,R>TupleList<L,R>combine(List<L> leftEntries,
List<R> rightEntries)
Creates a TupleList by combining two lists. Each tuple in the
result will consist of an element from each list.