Home
last modified time | relevance | path

Searched refs:ImmutableCollection (Results 1 – 25 of 45) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DImmutableCollectionTest.java28 assertEquals(1, ImmutableCollection.Builder.expandedCapacity(0, 1)); in testCapacityExpansion()
29 assertEquals(2, ImmutableCollection.Builder.expandedCapacity(0, 2)); in testCapacityExpansion()
30 assertEquals(2, ImmutableCollection.Builder.expandedCapacity(1, 2)); in testCapacityExpansion()
32 ImmutableCollection.Builder.expandedCapacity(0, Integer.MAX_VALUE)); in testCapacityExpansion()
34 ImmutableCollection.Builder.expandedCapacity(1, Integer.MAX_VALUE)); in testCapacityExpansion()
36 ImmutableCollection.Builder.expandedCapacity(Integer.MAX_VALUE - 1, Integer.MAX_VALUE)); in testCapacityExpansion()
38 assertEquals(13, ImmutableCollection.Builder.expandedCapacity(8, 9)); in testCapacityExpansion()
/external/guava/guava/src/com/google/common/collect/
DImmutableMultimap.java301 final transient ImmutableMap<K, ? extends ImmutableCollection<V>> map;
320 ImmutableMultimap(ImmutableMap<K, ? extends ImmutableCollection<V>> map, in ImmutableMultimap()
336 public ImmutableCollection<V> removeAll(Object key) { in removeAll()
348 public ImmutableCollection<V> replaceValues(K key, in replaceValues()
372 public abstract ImmutableCollection<V> get(K key); in get()
491 public ImmutableCollection<Entry<K, V>> entries() { in entries()
492 return (ImmutableCollection<Entry<K, V>>) super.entries(); in entries()
496 ImmutableCollection<Entry<K, V>> createEntries() { in createEntries()
501 extends ImmutableCollection<Entry<K, V>> {
622 public ImmutableCollection<V> values() {
[all …]
DRegularImmutableAsList.java31 private final ImmutableCollection<E> delegate;
34 RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) { in RegularImmutableAsList()
39 RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) { in RegularImmutableAsList()
44 ImmutableCollection<E> delegateCollection() { in delegateCollection()
DImmutableAsList.java36 abstract ImmutableCollection<E> delegateCollection(); in delegateCollection()
64 final ImmutableCollection<?> collection;
65 SerializedForm(ImmutableCollection<?> collection) { in SerializedForm()
DImmutableCollection.java47 public abstract class ImmutableCollection<E> extends AbstractCollection<E> class
50 ImmutableCollection() {} in ImmutableCollection() method in ImmutableCollection
313 public abstract ImmutableCollection<E> build(); in build()
316 abstract static class ArrayBasedBuilder<E> extends ImmutableCollection.Builder<E> {
DImmutableMapValues.java34 final class ImmutableMapValues<K, V> extends ImmutableCollection<V> {
71 ImmutableCollection<V> delegateCollection() { in createAsList()
DImmutableMap.java184 this(ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY); in Builder()
196 entries, ImmutableCollection.Builder.expandedCapacity(entries.length, minCapacity)); in ensureCapacity()
414 private transient ImmutableCollection<V> values;
421 public ImmutableCollection<V> values() { in values()
422 ImmutableCollection<V> result = values; in values()
DRegularImmutableSortedMap.java72 ImmutableCollection<Entry<K, V>> delegateCollection() { in createAsList()
90 public ImmutableCollection<V> values() { in values()
DImmutableTable.java265 public ImmutableCollection<V> values() { in values()
266 return (ImmutableCollection<V>) super.values(); in values()
270 abstract ImmutableCollection<V> createValues(); in createValues()
DImmutableList.java63 public abstract class ImmutableList<E> extends ImmutableCollection<E>
251 if (elements instanceof ImmutableCollection) { in copyOf()
253 ImmutableList<E> list = ((ImmutableCollection<E>) elements).asList(); in copyOf()
630 public static final class Builder<E> extends ImmutableCollection.ArrayBasedBuilder<E> {
DRegularImmutableTable.java64 ImmutableCollection<Cell<R, C, V>> delegateCollection() { in createAsList()
89 final ImmutableCollection<V> createValues() {
DImmutableMultiset.java52 public abstract class ImmutableMultiset<E> extends ImmutableCollection<E>
376 ImmutableCollection<Entry<E>> delegateCollection() { in createAsList()
487 public static class Builder<E> extends ImmutableCollection.Builder<E> {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableCollection.java35 public abstract class ImmutableCollection<E> extends AbstractCollection<E> class
38 static final ImmutableCollection<Object> EMPTY_IMMUTABLE_COLLECTION
41 ImmutableCollection() {} in ImmutableCollection() method in ImmutableCollection
90 static <E> ImmutableCollection<E> unsafeDelegate(Collection<E> delegate) { in unsafeDelegate()
131 public abstract ImmutableCollection<E> build(); in build()
DImmutableMultimap.java300 final transient ImmutableMap<K, ? extends ImmutableCollection<V>> map;
307 ImmutableMultimap(ImmutableMap<K, ? extends ImmutableCollection<V>> map, in ImmutableMultimap()
323 public ImmutableCollection<V> removeAll(Object key) { in removeAll()
335 public ImmutableCollection<V> replaceValues(K key, in replaceValues()
359 public abstract ImmutableCollection<V> get(K key); in get()
478 public ImmutableCollection<Entry<K, V>> entries() { in entries()
479 return (ImmutableCollection<Entry<K, V>>) super.entries(); in entries()
483 ImmutableCollection<Entry<K, V>> createEntries() { in createEntries()
488 extends ImmutableCollection<Entry<K, V>> {
609 public ImmutableCollection<V> values() {
[all …]
DRegularImmutableAsList.java30 private final ImmutableCollection<E> delegate;
33 RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) { in RegularImmutableAsList()
38 RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) { in RegularImmutableAsList()
43 ImmutableCollection<E> delegateCollection() { in delegateCollection()
DImmutableMapValues.java32 final class ImmutableMapValues<K, V> extends ImmutableCollection<V> {
69 ImmutableCollection<V> delegateCollection() { in createAsList()
DImmutableList.java40 public abstract class ImmutableList<E> extends ImmutableCollection<E>
138 if (elements instanceof ImmutableCollection) { in copyOf()
144 ImmutableCollection<E> list = (ImmutableCollection<E>) elements; in copyOf()
277 public static final class Builder<E> extends ImmutableCollection.Builder<E> {
DForwardingImmutableMap.java106 @Override ImmutableCollection<V> createValues() {
107 return ImmutableCollection.unsafeDelegate(delegate.values());
DImmutableMap.java233 private transient ImmutableCollection<V> cachedValues = null;
235 public ImmutableCollection<V> values() { in values()
320 ImmutableCollection<V> createValues() {
DImmutableMultiset.java51 public abstract class ImmutableMultiset<E> extends ImmutableCollection<E>
365 ImmutableCollection<Entry<E>> delegateCollection() { in createAsList()
476 public static class Builder<E> extends ImmutableCollection.Builder<E> {
DImmutableAsList.java31 abstract ImmutableCollection<E> delegateCollection(); in delegateCollection()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DKeyboardIdMap.java14 import com.google.common.collect.ImmutableCollection;
73 public ImmutableCollection<KeyboardId> getKeyboardId(String name) { in getKeyboardId()
75 ImmutableCollection<KeyboardId> ids = nameToKeyboardId.get(name); in getKeyboardId()
/external/guava/guava-gwt/src/com/google/common/collect/
DRegularImmutableAsList_CustomFieldSerializer.java40 ImmutableCollection<Object> delegateCollection = (ImmutableCollection) reader.readObject(); in instantiate()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DParameterSet.java19 import com.google.common.collect.ImmutableCollection;
74 ImmutableCollection<String> values = explicitValues.containsKey(name) in fillInDefaultsFor()
DParameter.java23 import com.google.common.collect.ImmutableCollection;
70 void validate(ImmutableCollection<String> values) throws InvalidBenchmarkException { in validate()

12