## Deprecated API

Contents

- Deprecated Classes
- Deprecated Exceptions
- Deprecated Methods

Deprecated Classes
com.google.common.collect.AbstractLinkedIterator This class has been renamed `AbstractSequentialIterator`. This class is scheduled to be removed in Guava release 13.0.

Deprecated Exceptions
com.google.common.collect.AsynchronousComputationException this class is unused by com.google.common.collect. This class is scheduled for deletion in November 2012.

Deprecated Methods
com.google.common.base.Joiner.appendTo(A, I) use `Joiner.appendTo(Appendable, Iterator)` by casting `parts` to `Iterator<?>`, or better yet, by implementing only `Iterator` and not `Iterable`. This method is scheduled for deletion in June 2013.
com.google.common.base.Joiner.MapJoiner.appendTo(A, I) use `Joiner.MapJoiner.appendTo(Appendable, Iterator)` by casting `entries` to `Iterator<? extends Entry<?, ?>>`, or better yet, by implementing only `Iterator` and not `Iterable`. This method is scheduled for deletion in June 2013.
com.google.common.base.Joiner.appendTo(StringBuilder, I) use `Joiner.appendTo(StringBuilder, Iterator)` by casting `parts` to `Iterator<?>`, or better yet, by implementing only `Iterator` and not `Iterable`. This method is scheduled for deletion in June 2013.
com.google.common.base.Joiner.MapJoiner.appendTo(StringBuilder, I) use `Joiner.MapJoiner.appendTo(StringBuilder, Iterator)` by casting `entries` to `Iterator<? extends Entry<?, ?>>`, or better yet, by implementing only `Iterator` and not `Iterable`. This method is scheduled for deletion in June 2013.
com.google.common.collect.ArrayTable.clear() Use `ArrayTable.eraseAll()`
com.google.common.collect.ComparisonChain.compare(boolean, boolean) Use `ComparisonChain.compareFalseFirst(boolean, boolean)`; or, if the parameters passed are being either negated or reversed, undo the negation or reversal and use `ComparisonChain.compareTrueFirst(boolean, boolean)`. This method is scheduled for deletion in September 2013.
com.google.common.eventbus.EventBus.dispatchQueuedEvents() This method should not be overridden outside of the eventbus package. It is scheduled for removal in Guava 14.0.
com.google.common.base.Equivalences.equals() This method has been moved to `Equivalence.equals()`. This method is scheduled to be removed in Guava release 14.0.
com.google.common.collect.FluentIterable.from(FluentIterable<E>) instances of `FluentIterable` don't need to be converted to `FluentIterable`
com.google.common.collect.Ordering.from(Ordering<T>) no need to use this
com.google.common.net.InternetDomainName.fromLenient(String) Use `InternetDomainName.from(String)`
com.google.common.base.Equivalences.identity() This method has been moved to `Equivalence.identity()`. This method is schedule to be removed in Guava release 14.0.
com.google.common.net.InternetDomainName.isValidLenient(String) Use `InternetDomainName.isValid(String)` instead
com.google.common.base.Joiner.join(I) use `Joiner.join(Iterator)` by casting `parts` to `Iterator<?>`, or better yet, by implementing only `Iterator` and not `Iterable`. This method is scheduled for deletion in June 2013.
com.google.common.base.Joiner.MapJoiner.join(I) use `Joiner.MapJoiner.join(Iterator)` by casting `entries` to `Iterator<? extends Entry<?, ?>>`, or better yet, by implementing only `Iterator` and not `Iterable`. This method is scheduled for deletion in June 2013.
com.google.common.collect.GenericMapMaker.makeComputingMap(Function<? super K, ? extends V>)

com.google.common.collect.MapMaker.makeComputingMap(Function<? super K, ? extends V>)
Caching functionality in `MapMaker` is being moved to `CacheBuilder`, with `MapMaker.makeComputingMap(com.google.common.base.Function<? super K, ? extends V>)` being replaced by `CacheBuilder.build(com.google.common.cache.CacheLoader<? super K1, V1>)`. See the MapMaker Migration Guide for more details. This method is scheduled for deletion in February 2013.

com.google.common.collect.Iterators.peekingIterator(PeekingIterator<T>) no need to use this
com.google.common.collect.ArrayTable.remove(Object, Object) Use `ArrayTable.erase(java.lang.Object, java.lang.Object)`
com.google.common.collect.Iterators.skip(Iterator<?>, int) This method has been renamed to `advance`. This method is scheduled to be deleted in Guava 14.0.
com.google.common.collect.GenericMapMaker.softKeys()
com.google.common.collect.MapMaker.softKeys() use `MapMaker.softValues()` to create a memory-sensitive map, or `MapMaker.weakKeys()` to create a map that doesn't hold strong references to the keys. This method is scheduled for deletion in January 2013.
com.google.common.base.Stopwatch.toString(int) Use `Stopwatch.toString()` instead. This method is scheduled to be removed in Guava release 15.0.
com.google.common.collect.Iterables.unmodifiableIterable(ImmutableCollection<E>) no need to use this
com.google.common.collect.Iterators.unmodifiableIterator(UnmodifiableIterator<T>) no need to use this
com.google.common.collect.Multimaps.unmodifiableListMultimap(ImmutableListMultimap<K, V>) no need to use this
com.google.common.collect.Multimaps.unmodifiableMultimap(ImmutableMultimap<K, V>) no need to use this
com.google.common.collect.Multisets.unmodifiableMultiset(ImmutableMultiset<E>) no need to use this
com.google.common.collect.Multimaps.unmodifiableSetMultimap(ImmutableSetMultimap<K, V>) no need to use this
com.google.common.io.LittleEndianDataOutputStream.writeBytes(String) The semantics of `writeBytes(String s)` are considered dangerous. Please use `LittleEndianDataOutputStream.writeUTF(String s)`, `LittleEndianDataOutputStream.writeChars(String s)` or another write method instead.
com.google.common.io.ByteArrayDataOutput.writeBytes(String) This method is dangerous as it discards the high byte of every character. For UTF-8, use `write(s.getBytes(Charsets.UTF_8))`.

Copyright © 2010-2012. All Rights Reserved.