# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Methods

- Deprecated Interfaces
  Interface and Description
  org.apache.commons.collections4.MultiMap since 4.1, use `MultiValuedMap` instead

- Deprecated Classes
  Class and Description
  org.apache.commons.collections4.ArrayStack use `ArrayDeque` instead (available from Java 1.6)
  org.apache.commons.collections4.map.MultiValueMap since 4.1, use `MultiValuedMap` instead

- Deprecated Methods
  Method and Description
  org.apache.commons.collections4.CollectionUtils.cardinality(O, Iterable) since 4.1, use `IterableUtils.frequency(Iterable, Object)` instead. Be aware that the order of parameters has changed.
  org.apache.commons.collections4.CollectionUtils.countMatches(Iterable, Predicate) since 4.1, use `IterableUtils.countMatches(Iterable, Predicate)` instead
  org.apache.commons.collections4.CollectionUtils.exists(Iterable, Predicate) since 4.1, use `IterableUtils.matchesAny(Iterable, Predicate)` instead
  org.apache.commons.collections4.CollectionUtils.find(Iterable, Predicate) since 4.1, use `IterableUtils.find(Iterable, Predicate)` instead
  org.apache.commons.collections4.CollectionUtils.forAllButLastDo(Iterable, C) since 4.1, use `IterableUtils.forEachButLast(Iterable, Closure)` instead
  org.apache.commons.collections4.CollectionUtils.forAllButLastDo(Iterator, C) since 4.1, use `IteratorUtils.forEachButLast(Iterator, Closure)` instead
  org.apache.commons.collections4.CollectionUtils.forAllDo(Iterable, C) since 4.1, use `IterableUtils.forEach(Iterable, Closure)` instead
  org.apache.commons.collections4.CollectionUtils.forAllDo(Iterator, C) since 4.1, use `IteratorUtils.forEach(Iterator, Closure)` instead
  org.apache.commons.collections4.CollectionUtils.get(Iterable, int) since 4.1, use `IterableUtils.get(Iterable, int)` instead
  org.apache.commons.collections4.CollectionUtils.get(Iterator, int) since 4.1, use `IteratorUtils.get(Iterator, int)` instead
  org.apache.commons.collections4.CollectionUtils.matchesAll(Iterable, Predicate) since 4.1, use `IterableUtils.matchesAll(Iterable, Predicate)` instead
  org.apache.commons.collections4.MapUtils.multiValueMap(Map>) since 4.1, use `MultiValuedMap` instead
  org.apache.commons.collections4.MapUtils.multiValueMap(Map, Class) since 4.1, use `MultiValuedMap` instead
  org.apache.commons.collections4.MapUtils.multiValueMap(Map, Factory) since 4.1, use `MultiValuedMap` instead
  org.apache.commons.collections4.TransformerUtils.switchTransformer(Predicate, Transformer, Transformer) as of 4.1, use {@link #ifTransformer(Predicate, Transformer, Transformer))
  org.apache.commons.collections4.CollectionUtils.synchronizedCollection(Collection) since 4.1, use `Collections.synchronizedCollection(Collection)` instead
  org.apache.commons.collections4.CollectionUtils.unmodifiableCollection(Collection) since 4.1, use `Collections.unmodifiableCollection(Collection)` instead

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.