| Method and Description |
|---|
| com.google.common.collect.MapMaker.expiration(long, TimeUnit)
use
MapMaker.expireAfterWrite(long, java.util.concurrent.TimeUnit), which behaves exactly the same.
This method is scheduled for deletion in July 2012. |
| com.google.common.collect.Ordering.from(Ordering no need to use this
|
| com.google.common.collect.ImmutableList.of(E[])
use
ImmutableList.copyOf(Object[]). This method is scheduled for
deletion in October 2011. |
| com.google.common.collect.ImmutableSet.of(E[])
use
ImmutableSet.copyOf(Object[]). This method is scheduled for
deletion in October 2011. |
| com.google.common.collect.ImmutableMultiset.of(E[])
use
ImmutableMultiset.copyOf(Object[]). This method is scheduled for
deletion in January 2012. |
| com.google.common.collect.ImmutableSortedSet.of(E[])
use
ImmutableSortedSet.copyOf(Comparable[]). This method is scheduled
for deletion in October 2011. |
| 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.ImmutableSortedSet.withExplicitOrder(E, E...)
If the provided elements are already in their natural order,
ImmutableSortedSet.of() will produce a set with the same elements in the same
order. If the elements are arranged according to another Comparator, use ImmutableSortedSet.orderedBy(Comparator). Otherwise, use ImmutableSet, which maintains insertion order for inputs that are
ordered but not sorted. This method is scheduled for deletion in Guava
release 10. |
| com.google.common.collect.ImmutableSortedSet.withExplicitOrder(List If the provided elements are already in their natural order,
ImmutableSortedSet.copyOf(Iterable) will produce a set with the same elements in
the same order. If the elements are arranged according to another
Comparator, use ImmutableSortedSet.orderedBy(Comparator). Otherwise, use
ImmutableSet, which maintains insertion order for inputs that
are ordered but not sorted. This method is scheduled for deletion in
Guava release 10. |
| 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)). |
| 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. |
Copyright © 2010-2012. All Rights Reserved.