HomeSort by relevance Sort by last modified time
    Searched refs:multiset (Results 51 - 75 of 201) sorted by null

1 23 4 5 6 7 8 9

  /external/guava/guava/src/com/google/common/collect/
ImmutableMultiset.java 22 import com.google.common.collect.Multiset.Entry;
37 * An immutable hash-based multiset. Does not permit null elements.
41 * multiset contains multiple instances of an element, those instances are
52 implements Multiset<E> {
55 * Returns the empty immutable multiset.
63 * Returns an immutable multiset containing a single element.
74 * Returns an immutable multiset containing the given elements, in order.
85 * Returns an immutable multiset containing the given elements, in order.
96 * Returns an immutable multiset containing the given elements, in order.
107 * Returns an immutable multiset containing the given elements, in order
191 Multiset<? extends E> multiset = (elements instanceof Multiset) local
239 Multiset<E> multiset = LinkedHashMultiset.create(); local
365 transient final ImmutableMultiset<E> multiset; field in class:EntrySet
443 final ImmutableMultiset<E> multiset; field in class:EntrySet.EntrySetSerializedForm
474 LinkedHashMultiset<Object> multiset = local
601 Multiset<? extends E> multiset = Multisets.cast(elements); local
    [all...]
SortedMultisets.java 20 import com.google.common.collect.Multiset.Entry;
44 @Override abstract SortedMultiset<E> multiset(); method in class:SortedMultisets.ElementSet
47 return multiset().comparator();
51 return multiset().subMultiset(fromElement, BoundType.CLOSED, toElement,
56 return multiset().headMultiset(toElement, BoundType.OPEN).elementSet();
60 return multiset().tailMultiset(fromElement, BoundType.CLOSED)
65 return getElementOrThrow(multiset().firstEntry());
69 return getElementOrThrow(multiset().lastEntry());
81 * A skeleton implementation of a descending multiset. Only needs
105 @Override SortedMultiset<E> multiset() {
    [all...]
HashMultiset.java 28 * Multiset implementation backed by a {@link HashMap}.
60 * a {@link Multiset}.
62 * @param elements the elements that the multiset should contain
65 HashMultiset<E> multiset = local
67 Iterables.addAll(multiset, elements);
68 return multiset;
LinkedHashMultiset.java 28 * A {@code Multiset} implementation with predictable iteration order. Its
30 * element was added. When the multiset contains multiple instances of an
33 * the multiset, the element will appear at the end of the iteration.
66 * a {@link Multiset}.
68 * @param elements the elements that the multiset should contain
72 LinkedHashMultiset<E> multiset = local
74 Iterables.addAll(multiset, elements);
75 return multiset;
Multisets.java 40 import com.google.common.collect.Multiset.Entry;
45 * Multiset} instances.
57 * Returns an unmodifiable view of the specified multiset. Query operations on
58 * the returned multiset "read through" to the specified multiset, and
59 * attempts to modify the returned multiset result in an
62 * <p>The returned multiset will be serializable if the specified multiset is
65 * @param multiset the multiset for which an unmodifiable view is to b
    [all...]
EnumMultiset.java 29 * Multiset implementation backed by an {@link EnumMap}.
45 * Multiset}.
47 * @param elements the elements that the multiset should contain
53 EnumMultiset<E> multiset = new EnumMultiset<E>(iterator.next().getDeclaringClass()); local
54 Iterables.addAll(multiset, elements);
55 return multiset;
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multiset/multiset.cons/
alloc.pass.cpp 12 // class multiset
14 // multiset(const allocator_type& a);
25 std::multiset<int, C, A> m(A(5));
compare.pass.cpp 12 // class multiset
14 // explicit multiset(const value_compare& comp);
24 std::multiset<int, C> m(C(3));
compare_alloc.pass.cpp 12 // class multiset
14 // multiset(const value_compare& comp, const allocator_type& a);
26 std::multiset<int, C, A> m(C(4), A(5));
move.pass.cpp 12 // class multiset
14 // multiset(multiset&& s);
30 std::multiset<int, C, A> mo(C(5), A(7));
31 std::multiset<int, C, A> m = std::move(mo);
58 std::multiset<int, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A(7));
59 std::multiset<int, C, A> m = std::move(mo);
97 std::multiset<int, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A());
98 std::multiset<int, C, A> m = std::move(mo);
initializer_list_compare.pass.cpp 12 // class multiset
14 // multiset(initializer_list<value_type> il, const key_compare& comp = key_compare());
24 typedef std::multiset<int, Cmp> C;
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multiset/
iterator.pass.cpp 12 // class multiset
65 std::multiset<int> m(ar, ar+sizeof(ar)/sizeof(ar[0]));
68 std::multiset<int>::iterator i;
70 std::multiset<int>::const_iterator k = i;
105 const std::multiset<int> m(ar, ar+sizeof(ar)/sizeof(ar[0]));
110 std::multiset<int>::const_iterator i;
146 std::multiset<int, std::less<int>, min_allocator<int>> m(ar, ar+sizeof(ar)/sizeof(ar[0]));
149 std::multiset<int, std::less<int>, min_allocator<int>>::iterator i;
151 std::multiset<int, std::less<int>, min_allocator<int>>::const_iterator k = i;
186 const std::multiset<int, std::less<int>, min_allocator<int>> m(ar, ar+sizeof(ar)/sizeof(ar[0]))
    [all...]
emplace.pass.cpp 12 // class multiset
28 typedef std::multiset<DefaultOnly> M;
46 typedef std::multiset<Emplaceable> M;
63 typedef std::multiset<int> M;
73 typedef std::multiset<int, std::less<int>, min_allocator<int>> M;
emplace_hint.pass.cpp 12 // class multiset
28 typedef std::multiset<DefaultOnly> M;
46 typedef std::multiset<Emplaceable> M;
63 typedef std::multiset<int> M;
73 typedef std::multiset<int, std::less<int>, min_allocator<int>> M;
  /external/guava/guava-tests/test/com/google/common/collect/
SimpleAbstractMultisetTest.java 20 import com.google.common.collect.Multiset.Entry;
37 @Override protected <E> Multiset<E> create() {
43 Multiset<String> multiset = new NoRemoveMultiset<String>() { local
52 multiset.addAll(adds);
57 Multiset<String> multiset = new NoRemoveMultiset<String>(); local
58 multiset.add("a");
60 multiset.remove("a");
63 assertTrue(multiset.contains("a"))
    [all...]
TreeMultisetTest.java 44 @Override protected <E> Multiset<E> create() {
45 return (Multiset) TreeMultiset.create();
49 TreeMultiset<String> multiset = TreeMultiset.create(); local
50 multiset.add("foo", 2);
51 multiset.add("bar");
52 assertEquals(3, multiset.size());
53 assertEquals(2, multiset.count("foo"));
54 assertEquals(Ordering.natural(), multiset.comparator());
55 assertEquals("[bar, foo x 2]", multiset.toString());
59 Multiset<String> multiset = TreeMultiset.create(Collections.reverseOrder()) local
68 Multiset<String> multiset local
    [all...]
  /external/chromium_org/cc/scheduler/
rolling_time_delta_history.h 33 typedef std::multiset<base::TimeDelta> TimeDeltaMultiset;
  /external/guava/guava-gwt/src/com/google/common/collect/
Multiset_CustomFieldSerializerBase.java 24 * This class contains static utility methods for writing {@code Multiset} GWT
26 * {@link #serialize(SerializationStreamWriter, Multiset)} and to either
28 * {@link #populate(SerializationStreamReader, Multiset)}.
46 static Multiset<Object> populate(
47 SerializationStreamReader reader, Multiset<Object> multiset)
53 multiset.add(element, count);
55 return multiset;
58 static void serialize(SerializationStreamWriter writer, Multiset<?> instance)
62 for (Multiset.Entry<?> entry : instance.entrySet())
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
EnumMultiset.java 25 * Multiset implementation backed by an {@link EnumMap}.
41 * Multiset}.
43 * @param elements the elements that the multiset should contain
49 EnumMultiset<E> multiset = new EnumMultiset<E>(iterator.next().getDeclaringClass()); local
50 Iterables.addAll(multiset, elements);
51 return multiset;
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
UnmodifiableCollectionTests.java 29 import com.google.common.collect.Multiset;
190 * Verifies that a multiset is immutable.
192 * <p>A multiset is considered immutable if:
197 * multiset throw UnsupportedOperationException when those mutators
201 * @param multiset the presumed-immutable multiset
203 * {@code multiset}. {@code multiset} may or may not have {@code
206 public static <E> void assertMultisetIsUnmodifiable(Multiset<E> multiset,
    [all...]
  /external/oprofile/libpp/
symbol_container.h 82 typedef std::multiset<symbol_entry const *, less_by_file_loc>
  /external/stlport/stlport/stl/
_config_compat_post.h 42 # define __multiset__ multiset
  /ndk/sources/cxx-stl/stlport/stlport/stl/
_config_compat_post.h 42 # define __multiset__ multiset
  /prebuilts/ndk/5/sources/cxx-stl/stlport/stlport/stl/
_config_compat_post.h 42 # define __multiset__ multiset
  /prebuilts/ndk/6/sources/cxx-stl/stlport/stlport/stl/
_config_compat_post.h 42 # define __multiset__ multiset

Completed in 819 milliseconds

1 23 4 5 6 7 8 9