package org.eclipse.collections.impl.factory;
import java.util.Comparator;
import org.eclipse.collections.api.bag.ImmutableBag;
import org.eclipse.collections.api.bag.MutableBag;
import org.eclipse.collections.api.list.ImmutableList;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.api.map.ImmutableMap;
import org.eclipse.collections.api.map.MutableMap;
import org.eclipse.collections.api.map.sorted.ImmutableSortedMap;
import org.eclipse.collections.api.map.sorted.MutableSortedMap;
import org.eclipse.collections.api.set.ImmutableSet;
import org.eclipse.collections.api.set.MutableSet;
import org.eclipse.collections.api.set.sorted.ImmutableSortedSet;
import org.eclipse.collections.api.set.sorted.MutableSortedSet;
public final class Iterables
{
private Iterables()
{
throw new AssertionError("Suppress default constructor for noninstantiability");
}
public static <T> MutableList<T> mList()
{
return Lists.mutable.empty();
}
public static <T> MutableList<T> mList(T... elements)
{
return Lists.mutable.with(elements);
}
public static <T> MutableSet<T> mSet()
{
return Sets.mutable.empty();
}
public static <T> MutableSet<T> mSet(T... elements)
{
return Sets.mutable.with(elements);
}
public static <T> MutableBag<T> mBag()
{
return Bags.mutable.empty();
}
public static <T> MutableBag<T> mBag(T... elements)
{
return Bags.mutable.with(elements);
}
public static <K, V> MutableMap<K, V> mMap()
{
return Maps.mutable.empty();
}
public static <K, V> MutableMap<K, V> mMap(K key, V value)
{
return Maps.mutable.with(key, value);
}
public static <K, V> MutableMap<K, V> mMap(K key1, V value1, K key2, V value2)
{
return Maps.mutable.with(key1, value1, key2, value2);
}
public static <K, V> MutableMap<K, V> mMap(K key1, V value1, K key2, V value2, K key3, V value3)
{
return Maps.mutable.with(key1, value1, key2, value2, key3, value3);
}
public static <K, V> MutableMap<K, V> mMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
{
return Maps.mutable.with(key1, value1, key2, value2, key3, value3, key4, value4);
}
public static <T> MutableSortedSet<T> mSortedSet()
{
return SortedSets.mutable.empty();
}
public static <T> MutableSortedSet<T> mSortedSet(T... elements)
{
return SortedSets.mutable.with(elements);
}
public static <T> MutableSortedSet<T> mSortedSet(Comparator<? super T> comparator)
{
return SortedSets.mutable.with(comparator);
}
public static <T> MutableSortedSet<T> mSortedSet(Comparator<? super T> comparator, T... elements)
{
return SortedSets.mutable.with(comparator, elements);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap()
{
return SortedMaps.mutable.empty();
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(K key, V value)
{
return SortedMaps.mutable.with(key, value);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(K key1, V value1, K key2, V value2)
{
return SortedMaps.mutable.with(key1, value1, key2, value2);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(K key1, V value1, K key2, V value2, K key3, V value3)
{
return SortedMaps.mutable.with(key1, value1, key2, value2, key3, value3);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
{
return SortedMaps.mutable.with(key1, value1, key2, value2, key3, value3, key4, value4);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(Comparator<? super K> comparator)
{
return SortedMaps.mutable.with(comparator);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(Comparator<? super K> comparator, K key, V value)
{
return SortedMaps.mutable.with(comparator, key, value);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(
Comparator<? super K> comparator,
K key1, V value1,
K key2, V value2)
{
return SortedMaps.mutable.with(comparator, key1, value1, key2, value2);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(
Comparator<? super K> comparator,
K key1, V value1,
K key2, V value2,
K key3, V value3)
{
return SortedMaps.mutable.with(comparator, key1, value1, key2, value2, key3, value3);
}
public static <K, V> MutableSortedMap<K, V> mSortedMap(
Comparator<? super K> comparator,
K key1, V value1,
K key2, V value2,
K key3, V value3,
K key4, V value4)
{
return SortedMaps.mutable.with(comparator, key1, value1, key2, value2, key3, value3, key4, value4);
}
public static <T> ImmutableList<T> iList()
{
return Lists.immutable.empty();
}
public static <T> ImmutableList<T> iList(T one)
{
return Lists.immutable.with(one);
}
public static <T> ImmutableList<T> iList(T one, T two)
{
return Lists.immutable.with(one, two);
}
public static <T> ImmutableList<T> iList(T one, T two, T three)
{
return Lists.immutable.with(one, two, three);
}
public static <T> ImmutableList<T> iList(T one, T two, T three, T four)
{
return Lists.immutable.with(one, two, three, four);
}
public static <T> ImmutableList<T> iList(T one, T two, T three, T four, T five)
{
return Lists.immutable.with(one, two, three, four, five);
}
public static <T> ImmutableList<T> iList(T one, T two, T three, T four, T five, T six)
{
return Lists.immutable.with(one, two, three, four, five, six);
}
public static <T> ImmutableList<T> iList(T one, T two, T three, T four, T five, T six, T seven)
{
return Lists.immutable.with(one, two, three, four, five, six, seven);
}
public static <T> ImmutableList<T> iList(T one, T two, T three, T four, T five, T six, T seven, T eight)
{
return Lists.immutable.with(one, two, three, four, five, six, seven, eight);
}
public static <T> ImmutableList<T> iList(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)
{
return Lists.immutable.with(one, two, three, four, five, six, seven, eight, nine);
}
public static <T> ImmutableList<T> iList(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine, T ten)
{
return Lists.immutable.with(one, two, three, four, five, six, seven, eight, nine, ten);
}
public static <T> ImmutableList<T> iList(T... elements)
{
return Lists.immutable.with(elements);
}
public static <T> ImmutableSet<T> iSet()
{
return Sets.immutable.empty();
}
public static <T> ImmutableSet<T> iSet(T one)
{
return Sets.immutable.with(one);
}
public static <T> ImmutableSet<T> iSet(T one, T two)
{
return Sets.immutable.with(one, two);
}
public static <T> ImmutableSet<T> iSet(T one, T two, T three)
{
return Sets.immutable.with(one, two, three);
}
public static <T> ImmutableSet<T> iSet(T one, T two, T three, T four)
{
return Sets.immutable.with(one, two, three, four);
}
public static <T> ImmutableSet<T> iSet(T... elements)
{
return Sets.immutable.with(elements);
}
public static <T> ImmutableBag<T> iBag()
{
return Bags.immutable.empty();
}
public static <T> ImmutableBag<T> iBag(T one)
{
return Bags.immutable.with(one);
}
public static <T> ImmutableBag<T> iBag(T... elements)
{
return Bags.immutable.with(elements);
}
public static <K, V> ImmutableMap<K, V> iMap()
{
return Maps.immutable.empty();
}
public static <K, V> ImmutableMap<K, V> iMap(K key, V value)
{
return Maps.immutable.with(key, value);
}
public static <K, V> ImmutableMap<K, V> iMap(K key1, V value1, K key2, V value2)
{
return Maps.immutable.with(key1, value1, key2, value2);
}
public static <K, V> ImmutableMap<K, V> iMap(K key1, V value1, K key2, V value2, K key3, V value3)
{
return Maps.immutable.with(key1, value1, key2, value2, key3, value3);
}
public static <K, V> ImmutableMap<K, V> iMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
{
return Maps.immutable.with(key1, value1, key2, value2, key3, value3, key4, value4);
}
public static <T> ImmutableSortedSet<T> iSortedSet()
{
return SortedSets.immutable.empty();
}
public static <T> ImmutableSortedSet<T> iSortedSet(T... elements)
{
return SortedSets.immutable.with(elements);
}
public static <T> ImmutableSortedSet<T> iSortedSet(Comparator<? super T> comparator)
{
return SortedSets.immutable.with(comparator);
}
public static <T> ImmutableSortedSet<T> iSortedSet(Comparator<? super T> comparator, T... elements)
{
return SortedSets.immutable.with(comparator, elements);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap()
{
return SortedMaps.immutable.empty();
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(K key, V value)
{
return SortedMaps.immutable.with(key, value);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(K key1, V value1, K key2, V value2)
{
return SortedMaps.immutable.with(key1, value1, key2, value2);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(K key1, V value1, K key2, V value2, K key3, V value3)
{
return SortedMaps.immutable.with(key1, value1, key2, value2, key3, value3);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
{
return SortedMaps.immutable.with(key1, value1, key2, value2, key3, value3, key4, value4);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(Comparator<? super K> comparator)
{
return SortedMaps.immutable.with(comparator);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(Comparator<? super K> comparator, K key, V value)
{
return SortedMaps.immutable.with(comparator, key, value);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(
Comparator<? super K> comparator,
K key1, V value1,
K key2, V value2)
{
return SortedMaps.immutable.with(comparator, key1, value1, key2, value2);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(
Comparator<? super K> comparator,
K key1, V value1,
K key2, V value2,
K key3, V value3)
{
return SortedMaps.immutable.with(comparator, key1, value1, key2, value2, key3, value3);
}
public static <K, V> ImmutableSortedMap<K, V> iSortedMap(
Comparator<? super K> comparator,
K key1, V value1,
K key2, V value2,
K key3, V value3,
K key4, V value4)
{
return SortedMaps.immutable.with(comparator, key1, value1, key2, value2, key3, value3, key4, value4);
}
}