Example usage for com.google.common.collect ImmutableSortedMultiset copyOfSorted

List of usage examples for com.google.common.collect ImmutableSortedMultiset copyOfSorted

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableSortedMultiset copyOfSorted.

Prototype

public static <E> ImmutableSortedMultiset<E> copyOfSorted(SortedMultiset<E> sortedMultiset) 

Source Link

Document

Returns an immutable sorted multiset containing the elements of a sorted multiset, sorted by the same Comparator .

Usage

From source file:org.joda.beans.gen.ImmGuava.java

/**
 * Creates an instance.//  ww w  .j  av  a2 s . co m
 * @param collection  the value of the property, not null
 * @param list  the value of the property, not null
 * @param set  the value of the property, not null
 * @param sortedSet  the value of the property, not null
 * @param map  the value of the property, not null
 * @param sortedMap  the value of the property, not null
 * @param biMap  the value of the property, not null
 * @param multimap  the value of the property, not null
 * @param listMultimap  the value of the property, not null
 * @param setMultimap  the value of the property, not null
 * @param multiset  the value of the property, not null
 * @param sortedMultiset  the value of the property, not null
 * @param collectionInterface  the value of the property, not null
 * @param listInterface  the value of the property, not null
 * @param setInterface  the value of the property, not null
 * @param sortedSetInterface  the value of the property, not null
 * @param mapInterface  the value of the property, not null
 * @param sortedMapInterface  the value of the property, not null
 * @param biMapInterface  the value of the property, not null
 * @param multimapInterface  the value of the property, not null
 * @param listMultimapInterface  the value of the property, not null
 * @param setMultimapInterface  the value of the property, not null
 * @param multisetInterface  the value of the property, not null
 * @param sortedMultisetInterface  the value of the property, not null
 * @param listWildExtendsT  the value of the property, not null
 * @param listWildExtendsNumber  the value of the property, not null
 * @param listWildExtendsComparable  the value of the property, not null
 * @param setWildExtendsT  the value of the property, not null
 * @param setWildExtendsNumber  the value of the property, not null
 * @param setWildExtendsComparable  the value of the property, not null
 * @param listWildBuilder1  the value of the property, not null
 * @param listWildBuilder2  the value of the property, not null
 * @param mapWildBuilder1  the value of the property, not null
 */
public ImmGuava(Collection<T> collection, List<T> list, Set<T> set, SortedSet<T> sortedSet, Map<T, String> map,
        SortedMap<T, String> sortedMap, BiMap<T, String> biMap, Multimap<T, String> multimap,
        ListMultimap<T, String> listMultimap, SetMultimap<T, String> setMultimap, Multiset<T> multiset,
        SortedMultiset<T> sortedMultiset, Collection<T> collectionInterface, List<T> listInterface,
        Set<T> setInterface, SortedSet<T> sortedSetInterface, Map<T, String> mapInterface,
        SortedMap<T, String> sortedMapInterface, BiMap<T, String> biMapInterface,
        Multimap<T, String> multimapInterface, ListMultimap<T, String> listMultimapInterface,
        SetMultimap<T, String> setMultimapInterface, Multiset<T> multisetInterface,
        SortedMultiset<T> sortedMultisetInterface, List<? extends T> listWildExtendsT,
        List<? extends Number> listWildExtendsNumber, List<? extends Comparable<?>> listWildExtendsComparable,
        Set<? extends T> setWildExtendsT, Set<? extends Number> setWildExtendsNumber,
        Set<? extends Comparable<?>> setWildExtendsComparable, List<?> listWildBuilder1,
        List<? extends Address> listWildBuilder2, Map<String, ? extends Address> mapWildBuilder1) {
    JodaBeanUtils.notNull(collection, "collection");
    JodaBeanUtils.notNull(list, "list");
    JodaBeanUtils.notNull(set, "set");
    JodaBeanUtils.notNull(sortedSet, "sortedSet");
    JodaBeanUtils.notNull(map, "map");
    JodaBeanUtils.notNull(sortedMap, "sortedMap");
    JodaBeanUtils.notNull(biMap, "biMap");
    JodaBeanUtils.notNull(multimap, "multimap");
    JodaBeanUtils.notNull(listMultimap, "listMultimap");
    JodaBeanUtils.notNull(setMultimap, "setMultimap");
    JodaBeanUtils.notNull(multiset, "multiset");
    JodaBeanUtils.notNull(sortedMultiset, "sortedMultiset");
    JodaBeanUtils.notNull(collectionInterface, "collectionInterface");
    JodaBeanUtils.notNull(listInterface, "listInterface");
    JodaBeanUtils.notNull(setInterface, "setInterface");
    JodaBeanUtils.notNull(sortedSetInterface, "sortedSetInterface");
    JodaBeanUtils.notNull(mapInterface, "mapInterface");
    JodaBeanUtils.notNull(sortedMapInterface, "sortedMapInterface");
    JodaBeanUtils.notNull(biMapInterface, "biMapInterface");
    JodaBeanUtils.notNull(multimapInterface, "multimapInterface");
    JodaBeanUtils.notNull(listMultimapInterface, "listMultimapInterface");
    JodaBeanUtils.notNull(setMultimapInterface, "setMultimapInterface");
    JodaBeanUtils.notNull(multisetInterface, "multisetInterface");
    JodaBeanUtils.notNull(sortedMultisetInterface, "sortedMultisetInterface");
    JodaBeanUtils.notNull(listWildExtendsT, "listWildExtendsT");
    JodaBeanUtils.notNull(listWildExtendsNumber, "listWildExtendsNumber");
    JodaBeanUtils.notNull(listWildExtendsComparable, "listWildExtendsComparable");
    JodaBeanUtils.notNull(setWildExtendsT, "setWildExtendsT");
    JodaBeanUtils.notNull(setWildExtendsNumber, "setWildExtendsNumber");
    JodaBeanUtils.notNull(setWildExtendsComparable, "setWildExtendsComparable");
    JodaBeanUtils.notNull(listWildBuilder1, "listWildBuilder1");
    JodaBeanUtils.notNull(listWildBuilder2, "listWildBuilder2");
    JodaBeanUtils.notNull(mapWildBuilder1, "mapWildBuilder1");
    this.collection = ImmutableList.copyOf(collection);
    this.list = ImmutableList.copyOf(list);
    this.set = ImmutableSet.copyOf(set);
    this.sortedSet = ImmutableSortedSet.copyOfSorted(sortedSet);
    this.map = ImmutableMap.copyOf(map);
    this.sortedMap = ImmutableSortedMap.copyOfSorted(sortedMap);
    this.biMap = ImmutableBiMap.copyOf(biMap);
    this.multimap = ImmutableMultimap.copyOf(multimap);
    this.listMultimap = ImmutableListMultimap.copyOf(listMultimap);
    this.setMultimap = ImmutableSetMultimap.copyOf(setMultimap);
    this.multiset = ImmutableMultiset.copyOf(multiset);
    this.sortedMultiset = ImmutableSortedMultiset.copyOfSorted(sortedMultiset);
    this.collectionInterface = ImmutableList.copyOf(collectionInterface);
    this.listInterface = ImmutableList.copyOf(listInterface);
    this.setInterface = ImmutableSet.copyOf(setInterface);
    this.sortedSetInterface = ImmutableSortedSet.copyOfSorted(sortedSetInterface);
    this.mapInterface = ImmutableMap.copyOf(mapInterface);
    this.sortedMapInterface = ImmutableSortedMap.copyOfSorted(sortedMapInterface);
    this.biMapInterface = ImmutableBiMap.copyOf(biMapInterface);
    this.multimapInterface = ImmutableMultimap.copyOf(multimapInterface);
    this.listMultimapInterface = ImmutableListMultimap.copyOf(listMultimapInterface);
    this.setMultimapInterface = ImmutableSetMultimap.copyOf(setMultimapInterface);
    this.multisetInterface = ImmutableMultiset.copyOf(multisetInterface);
    this.sortedMultisetInterface = ImmutableSortedMultiset.copyOfSorted(sortedMultisetInterface);
    this.listWildExtendsT = ImmutableList.copyOf(listWildExtendsT);
    this.listWildExtendsNumber = ImmutableList.copyOf(listWildExtendsNumber);
    this.listWildExtendsComparable = ImmutableList.copyOf(listWildExtendsComparable);
    this.setWildExtendsT = ImmutableSet.copyOf(setWildExtendsT);
    this.setWildExtendsNumber = ImmutableSet.copyOf(setWildExtendsNumber);
    this.setWildExtendsComparable = ImmutableSet.copyOf(setWildExtendsComparable);
    this.listWildBuilder1 = ImmutableList.copyOf(listWildBuilder1);
    this.listWildBuilder2 = ImmutableList.copyOf(listWildBuilder2);
    this.mapWildBuilder1 = ImmutableMap.copyOf(mapWildBuilder1);
}