HomeSort by relevance Sort by last modified time
    Searched refs:collection (Results 126 - 150 of 413) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/guava/guava/src/com/google/common/collect/
Synchronized.java 28 import java.util.Collection;
42 * Synchronized collection views. The returned synchronized collection views are
43 * serializable if the backing collection and the mutex are serializable.
49 * <p>This class should be used by other collection classes only.
95 private static <E> Collection<E> collection( method in class:Synchronized
96 Collection<E> collection, @Nullable Object mutex) {
97 return new SynchronizedCollection<E>(collection, mutex)
    [all...]
Multimaps.java 42 import java.util.Collection;
72 * {@link Collection} classes.
107 public static <K, V> Multimap<K, V> newMultimap(Map<K, Collection<V>> map,
108 final Supplier<? extends Collection<V>> factory) {
113 transient Supplier<? extends Collection<V>> factory;
115 CustomMultimap(Map<K, Collection<V>> map,
116 Supplier<? extends Collection<V>> factory) {
121 @Override protected Collection<V> createCollection() {
141 factory = (Supplier<? extends Collection<V>>) stream.readObject();
142 Map<K, Collection<V>> map = (Map<K, Collection<V>>) stream.readObject()
    [all...]
Sets.java 38 import java.util.Collection;
90 * order, not the order in which the elements appear in the given collection.
118 * Unlike {@link EnumSet#copyOf(Collection)}, this method does not produce an
119 * exception on an empty collection, and it may be called on any iterable, not
120 * just a {@code Collection}.
211 return (elements instanceof Collection)
283 if (elements instanceof Collection) {
363 * the specified collection. If the collection is an {@link EnumSet}, this
365 * the specified collection must contain at least one element, in order t
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
Synchronized.java 25 import java.util.Collection;
39 * Synchronized collection views. The returned synchronized collection views are
40 * serializable if the backing collection and the mutex are serializable.
46 * <p>This class should be used by other collection classes only.
82 private static <E> Collection<E> collection( method in class:Synchronized
83 Collection<E> collection, @Nullable Object mutex) {
84 return new SynchronizedCollection<E>(collection, mutex)
    [all...]
Multimaps.java 38 import java.util.Collection;
68 * {@link Collection} classes.
103 public static <K, V> Multimap<K, V> newMultimap(Map<K, Collection<V>> map,
104 final Supplier<? extends Collection<V>> factory) {
109 transient Supplier<? extends Collection<V>> factory;
111 CustomMultimap(Map<K, Collection<V>> map,
112 Supplier<? extends Collection<V>> factory) {
117 @Override protected Collection<V> createCollection() {
164 Map<K, Collection<V>> map, final Supplier<? extends List<V>> factory) {
172 CustomListMultimap(Map<K, Collection<V>> map
    [all...]
Sets.java 35 import java.util.Collection;
87 * order, not the order in which the elements appear in the given collection.
115 * Unlike {@link EnumSet#copyOf(Collection)}, this method does not produce an
116 * exception on an empty collection, and it may be called on any iterable, not
117 * just a {@code Collection}.
208 return (elements instanceof Collection)
280 if (elements instanceof Collection) {
360 * the specified collection. If the collection is an {@link EnumSet}, this
362 * the specified collection must contain at least one element, in order t
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
ListExtensions.cs 188 public static int size( this ICollection collection )
190 return collection.Count;
194 public static int size<T>( this ICollection<T> collection )
196 return collection.Count;
  /external/chromium/chrome/browser/ui/gtk/notifications/
balloon_view_gtk.h 43 explicit BalloonViewImpl(BalloonCollection* collection);
  /external/guava/guava/src/com/google/common/primitives/
Bytes.java 29 import java.util.Collection;
213 * Copies a collection of {@code Byte} instances into a new array of
216 * <p>Elements are copied from the argument collection as if by {@code
217 * collection.toArray()}. Calling this method is as thread-safe as calling
220 * @param collection a collection of {@code Byte} objects
221 * @return an array containing the same values as {@code collection}, in the
223 * @throws NullPointerException if {@code collection} or any of its elements
226 public static byte[] toArray(Collection<Byte> collection) {
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
CollectionCreationTester.java 30 * static factory method) of a collection. Can't be invoked directly; please see
42 collection = getSubjectGenerator().create(array);
53 fail("Creating a collection containing null should fail");
ListIndexOfTester.java 49 collection = getSubjectGenerator().create(array);
ListLastIndexOfTester.java 49 collection = getSubjectGenerator().create(array);
ListRemoveAllTester.java 42 collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
47 assertFalse("after removeAll(e), a collection should not contain e even " +
ListRemoveTester.java 40 collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
SetAddTester.java 49 collection = getSubjectGenerator().create(array);
SetHashCodeTester.java 25 import java.util.Collection;
48 Collection<E> elements = getSampleElements(getNumElements() - 1);
55 collection = getSubjectGenerator().create(elements.toArray());
  /libcore/luni/src/main/java/java/util/
TreeSet.java 57 * and containing the unique elements in the specified collection.
59 * @param collection
60 * the collection of elements to add.
62 * when an element in the collection does not implement the
63 * Comparable interface, or the elements in the collection
66 public TreeSet(Collection<? extends E> collection) {
68 addAll(collection);
117 * Adds the objects in the specified collection to this {@code TreeSet}.
119 * @param collection
    [all...]
ArrayList.java 87 * the specified collection.
89 * @param collection
90 * the collection of elements to add.
92 public ArrayList(Collection<? extends E> collection) {
93 if (collection == null) {
94 throw new NullPointerException("collection == null");
97 Object[] a = collection.toArray();
180 * Adds the objects in the specified collection to this {@code ArrayList}.
182 * @param collection
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
ConstraintsTest.java 29 import java.util.Collection;
76 Collection<String> collection = Lists.newArrayList("foo", "bar"); local
77 Collection<String> constrained = Constraints.constrainedCollection(
78 collection, TEST_CONSTRAINT);
79 collection.add(TEST_ELEMENT);
82 /* equals and hashCode aren't defined for Collection */
83 ASSERT.that(collection).hasContentsInOrder("foo", "bar", TEST_ELEMENT, "qux", "cat", "dog");
88 Collection<String> collection = Lists.newArrayList("foo", "bar") local
    [all...]
  /packages/apps/Settings/src/com/android/settings/inputmethod/
KeyboardLayoutDialogFragment.java 231 String label, collection; local
234 collection = item.getCollection();
237 collection = "";
241 if (collection.isEmpty()) {
244 return inflateTwoLine(convertView, parent, label, collection, checked);
264 String label, String collection, boolean checked) {
277 subText.setText(collection);
  /external/chromium_org/chrome/browser/ui/panels/
docked_panel_collection.cc 24 // Width of spacing around panel collection and the left/right edges of the
95 DCHECK_NE(this, panel->collection());
157 DCHECK_EQ(this, panel->collection());
249 DCHECK_EQ(this, panel->collection());
297 DCHECK_EQ(this, panel->collection());
330 DCHECK_EQ(this, panel->collection());
341 DCHECK_EQ(this, panel->collection());
352 DCHECK_EQ(this, panel->collection());
362 DCHECK_EQ(this, panel->collection());
448 DCHECK_EQ(this, panel->collection());
    [all...]
panel_drag_controller.cc 150 // Keep track of original collection and placement for the case that the drag
152 dragging_panel_original_collection_ = dragging_panel_->collection();
187 // At last, handle the drag via its collection's specific handler.
188 switch (dragging_panel_->collection()->type()) {
199 dragging_panel_->collection() == dragging_panel_original_collection_);
211 PanelCollection* current_collection = dragging_panel_->collection();
213 // Restore the dragging panel to its original collection if needed.
254 // If the origianl collection is a stack and it becomes empty, remove it.
299 // It has to come from the docked collection.
300 if (dragging_panel_->collection()->type() != PanelCollection::DOCKED
    [all...]
  /external/guava/guava-tests/test/com/google/common/cache/
CacheTesting.java 39 import java.util.Collection;
51 * A collection of utilities for {@link Cache} testing.
58 * Poke into the Cache internals to simulate garbage collection of the value associated with the
78 * Poke into the Cache internals to simulate garbage collection of the given key. This assumes
472 static void checkEmpty(Collection<?> collection) {
473 assertTrue(collection.isEmpty());
474 assertEquals(0, collection.size());
475 assertFalse(collection.iterator().hasNext());
476 assertEquals(0, collection.toArray().length)
    [all...]
  /external/chromium_org/media/filters/
pipeline_integration_test_base.cc 229 scoped_ptr<FilterCollection> collection(new FilterCollection());
230 collection->SetDemuxer(demuxer_.get());
249 collection->SetVideoRenderer(renderer.Pass());
273 collection->SetAudioRenderer(audio_renderer.Pass());
275 return collection.Pass();
  /external/chromium_org/media/tools/player_x11/
player_x11.cc 118 scoped_ptr<media::FilterCollection> collection(
120 collection->SetDemuxer(demuxer);
131 collection->SetVideoRenderer(video_renderer.Pass());
141 collection->SetAudioRenderer(audio_renderer.Pass());
147 collection.Pass(), base::Closure(), media::PipelineStatusCB(),

Completed in 797 milliseconds

1 2 3 4 56 7 8 91011>>