|
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.collect.GenericMapMaker.expiration(long, TimeUnit)
|
com.google.common.collect.MapMaker.expiration(long, TimeUnit)
Caching functionality in MapMaker is being moved to
CacheBuilder. Functionality equivalent to
MapMaker.expiration(long, java.util.concurrent.TimeUnit) is provided by
CacheBuilder.expireAfterWrite(long, java.util.concurrent.TimeUnit). Note that CacheBuilder is simply an enhanced API for an implementation which was branched from
MapMaker.
This method is scheduled for deletion in July 2012. |
com.google.common.collect.FluentIterable.from(FluentIterable)
instances of FluentIterable don't need to be converted to
FluentIterable |
com.google.common.collect.Ordering.from(Ordering)
no need to use this |
com.google.common.net.InternetDomainName.fromLenient(String)
Use InternetDomainName.from(String) |
com.google.common.io.Files.getDigest(File, MessageDigest)
Use Files.hash(java.io.File, com.google.common.hash.HashFunction) instead. For example,
Files.hash(file, Hashing.sha1()). This method is scheduled to
be removed in Guava release 13.0. |
com.google.common.io.ByteStreams.getDigest(InputSupplier extends InputStream>, MessageDigest)
Use ByteStreams.hash(com.google.common.io.InputSupplier extends java.io.InputStream>, com.google.common.hash.HashFunction) instead. For example,
ByteStreams.hash(supplier, Hashing.sha1()). This method is
scheduled to be removed in Guava release 13.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)
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.Iterables.reverse(List)
use Lists.reverse(List) or ImmutableList.reverse(). This method is scheduled for deletion in
July 2012. |
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.collect.Iterables.unmodifiableIterable(ImmutableCollection)
no need to use this |
com.google.common.collect.Iterators.unmodifiableIterator(UnmodifiableIterator)
no need to use this |
com.google.common.collect.Multimaps.unmodifiableListMultimap(ImmutableListMultimap)
no need to use this |
com.google.common.collect.Multimaps.unmodifiableMultimap(ImmutableMultimap)
no need to use this |
com.google.common.collect.Multisets.unmodifiableMultiset(ImmutableMultiset)
no need to use this |
com.google.common.collect.Multimaps.unmodifiableSetMultimap(ImmutableSetMultimap)
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)). |