Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
The EventBus allows publish-subscribe-style communication between components
without requiring the components to explicitly register with one another
(and thus be aware of each other).
Joiner.appendTo(A appendable,
I parts) Deprecated.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.
Joiner.MapJoiner.appendTo(A appendable,
I entries) Deprecated.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.
Joiner.MapJoiner.appendTo(A appendable,
Iterable<? extends Map.Entry<?,?>> entries)
Appends the string representation of each entry in entries, using the previously
configured separator and key-value separator, to appendable.
Joiner.appendTo(A appendable,
Iterator<?> parts)
Appends the string representation of each of parts, using the previously configured
separator between each, to appendable.
Joiner.MapJoiner.appendTo(A appendable,
Iterator<? extends Map.Entry<?,?>> parts)
Appends the string representation of each entry in entries, using the previously
configured separator and key-value separator, to appendable.
Joiner.appendTo(StringBuilder builder,
I parts) Deprecated.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.
Joiner.MapJoiner.appendTo(StringBuilder builder,
I entries) Deprecated.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.
Joiner.MapJoiner.appendTo(StringBuilder builder,
Iterable<? extends Map.Entry<?,?>> entries)
Appends the string representation of each entry in entries, using the previously
configured separator and key-value separator, to builder.
Joiner.appendTo(StringBuilder builder,
Iterator<?> parts)
Appends the string representation of each of parts, using the previously configured
separator between each, to builder.
Joiner.MapJoiner.appendTo(StringBuilder builder,
Iterator<? extends Map.Entry<?,?>> entries)
Appends the string representation of each entry in entries, using the previously
configured separator and key-value separator, to builder.
Strings.commonPrefix(CharSequence a,
CharSequence b)
Returns the longest string prefix such that
a.toString().startsWith(prefix) && b.toString().startsWith(prefix),
taking care not to split surrogate pairs.
Strings.commonSuffix(CharSequence a,
CharSequence b)
Returns the longest string suffix such that
a.toString().endsWith(suffix) && b.toString().endsWith(suffix),
taking care not to split surrogate pairs.
Functions.forSupplier(Supplier<T> supplier)
Returns a function that always returns the result of invoking Supplier.get() on supplier, regardless of its input.
Joiner.join(I parts) Deprecated.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.
Joiner.MapJoiner.join(I entries) Deprecated.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.
Joiner.MapJoiner.join(Iterable<? extends Map.Entry<?,?>> entries)
Returns a string containing the string representation of each entry in entries, using
the previously configured separator and key-value separator.
Joiner.join(Iterator<?> parts)
Returns a string containing the string representation of each of parts, using the
previously configured separator between each.
Joiner.MapJoiner.join(Iterator<? extends Map.Entry<?,?>> entries)
Returns a string containing the string representation of each entry in entries, using
the previously configured separator and key-value separator.
Splitter.withKeyValueSeparator(Splitter keyValueSplitter)
Returns a MapSplitter which splits entries based on this splitter,
and splits entries into keys and values using the specified key-value
splitter.
Splitter.withKeyValueSeparator(String separator)
Returns a MapSplitter which splits entries based on this splitter,
and splits entries into keys and values using the specified separator.
AbstractLoadingCache<K,V>
This class provides a skeletal implementation of the Cache interface to minimize the
effort required to implement this interface.
interface
Cache<K,V>
A semi-persistent mapping from keys to values.
class
CacheBuilder<K,V>
A builder of LoadingCache and Cache instances having any combination of the
following features:
automatic loading of entries into the cache
least-recently-used eviction when a maximum size is exceeded
time-based expiration of entries, measured since last access or last write
keys automatically wrapped in weak references
values automatically wrapped in weak or
soft references
notification of evicted (or otherwise removed) entries
class
CacheLoader<K,V>
Computes or retrieves values, based on a key, for use in populating a Cache.
AbstractLinkedIterator<T>
This class provides a skeletal implementation of the Iterator
interface for sequences whose next element can always be derived from the
previous element.
Interners
Contains static methods pertaining to instances of Interner.
interface
MapConstraint<K,V>
A constraint on the keys and values that may be added to a Map or
Multimap.
class
MapConstraints
Factory and utilities pertaining to the MapConstraint interface.
class
MinMaxPriorityQueue<E>
A double-ended priority queue, which provides constant-time access to both
its least element and its greatest element, as determined by the queue's
specified comparator.
Queues
Static utility methods pertaining to Queue
instances.
class
Range<C extends Comparable>
A range, sometimes known as an interval, is a convex
(informally, "contiguous" or "unbroken") portion of a particular domain.
class
Ranges
Static methods pertaining to Range instances.
Lists.charactersOf(CharSequence sequence)
Returns a view of the specified CharSequence as a List<Character>, viewing sequence as a sequence of Unicode code
units.
Lists.charactersOf(String string)
Returns a view of the specified string as an immutable list of Character values.
static boolean
Multisets.containsOccurrences(Multiset<?> superMultiset,
Multiset<?> subMultiset)
Returns true if subMultiset.count(o) <=
superMultiset.count(o) for all o.
Multisets.copyHighestCountFirst(Multiset<E> multiset)
Returns a copy of multiset as an ImmutableMultiset whose iteration order is
highest count first, with ties broken by the iteration order of the original multiset.
ConcurrentHashMultiset.create(GenericMapMaker<? super E,? super Number> mapMaker)
Creates a new, empty ConcurrentHashMultiset using mapMaker
to construct the internal backing map.
Maps.difference(SortedMap<K,? extends V> left,
Map<? extends K,? extends V> right)
Computes the difference between two sorted maps, using the comparator of
the left map, or Ordering.natural() if the left map uses the
natural ordering of its elements.
Multimaps.filterEntries(Multimap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a multimap containing the mappings in unfiltered that
satisfy a predicate.
Maps.filterEntries(SortedMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a sorted map containing the mappings in unfiltered that
satisfy a predicate.
Multimaps.filterKeys(Multimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in unfiltered whose keys
satisfy a predicate.
Maps.filterKeys(SortedMap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a sorted map containing the mappings in unfiltered whose
keys satisfy a predicate.
Multimaps.filterValues(Multimap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a multimap containing the mappings in unfiltered whose values
satisfy a predicate.
Maps.filterValues(SortedMap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a sorted map containing the mappings in unfiltered whose
values satisfy a predicate.
Ordering.greatestOf(Iterable<E> iterable,
int k)
Returns the k greatest elements of the given iterable according to
this ordering, in order from greatest to least.
Multimaps.index(I values,
Function<? super V,K> keyFunction) Deprecated.use Multimaps.index(Iterator, Function) by casting values to Iterator<V>, or better yet, by implementing only
Iterator and not Iterable. This method is scheduled
for deletion in March 2012.
Ordering.leastOf(Iterable<E> iterable,
int k)
Returns the k least elements of the given iterable according to
this ordering, in order from least to greatest.
Iterables.mergeSorted(Iterable<? extends Iterable<? extends T>> iterables,
Comparator<? super T> comparator)
Returns an iterable over the merged contents of all given
iterables.
Iterators.mergeSorted(Iterable<? extends Iterator<? extends T>> iterators,
Comparator<? super T> comparator)
Returns an iterator over the merged contents of all given
iterators, traversing every element of the input iterators.
ImmutableListMultimap.Builder.orderValuesBy(Comparator<? super V> valueComparator)
Specifies the ordering of the generated multimap's values for each key.
ImmutableSetMultimap.Builder.orderValuesBy(Comparator<? super V> valueComparator)
Specifies the ordering of the generated multimap's values for each key.
ImmutableMultimap.Builder.orderValuesBy(Comparator<? super V> valueComparator)
Specifies the ordering of the generated multimap's values for each key.
static boolean
Multisets.removeOccurrences(Multiset<?> multisetToModify,
Multiset<?> occurrencesToRemove)
For each occurrence of an element e in occurrencesToRemove,
removes one occurrence of e in multisetToModify.
static boolean
Multisets.retainOccurrences(Multiset<?> multisetToModify,
Multiset<?> multisetToRetain)
Modifies multisetToModify so that its count for an element
e is at most multisetToRetain.count(e).
static
<T> int
Iterators.skip(Iterator<T> iterator,
int numberToSkip)
Calls next() on iterator, either numberToSkip times
or until hasNext() returns false, whichever comes first.
Multimaps.transformEntries(ListMultimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a ListMultimap whose values are derived from the
original multimap's entries.
Multimaps.transformEntries(Multimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a multimap whose values are derived from the original
multimap's entries.
Maps.transformEntries(SortedMap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a sorted map whose values are derived from the original
sorted map's entries.
Multimaps.transformValues(ListMultimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a ListMultimap where each value is transformed by
a function.
Multimaps.transformValues(Multimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a multimap where each value is transformed by a function.
Maps.transformValues(SortedMap<K,V1> fromMap,
Function<? super V1,V2> function)
Returns a view of a sorted map where each value is transformed by a
function.
Maps.uniqueIndex(I values,
Function<? super V,K> keyFunction) Deprecated.use Maps.uniqueIndex(Iterator, Function) by casting values to Iterator<V>, or better yet, by implementing only
Iterator and not Iterable. This method is scheduled
for deletion in March 2012.
FileBackedOutputStream
An OutputStream that starts buffering to a byte array, but
switches to file buffering once the data reaches a configurable size.
class
Files
Provides utility methods for working with files.
LittleEndianDataInputStream
An implementation of DataInput that uses little-endian byte ordering
for reading short, int, float, double, and
long values.
class
LittleEndianDataOutputStream
An implementation of DataOutput that uses little-endian byte ordering
for writing char, short, int, float, double, and long values.
UnsignedInteger
A wrapper class for unsigned int values, supporting arithmetic operations.
class
UnsignedInts
Static utility methods pertaining to int primitives that interpret values as
unsigned (that is, any negative value x is treated as the positive value
2^32 + x).
class
UnsignedLong
A wrapper class for unsigned long values, supporting arithmetic operations.
class
UnsignedLongs
Static utility methods pertaining to long primitives that interpret values as
unsigned (that is, any negative value x is treated as the positive value
2^64 + x).
Monitor
A synchronization abstraction supporting waiting on arbitrary boolean conditions.
static class
Monitor.Guard
A boolean condition for which a thread may wait.
interface
Service
An object with an operational state, plus asynchronous Service.start() and
Service.stop() lifecycle methods to transfer into and out of this state.
Futures.allAsList(Iterable<? extends ListenableFuture<? extends V>> futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its input futures, if all succeed.
Futures.allAsList(ListenableFuture<? extends V>... futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its input futures, if all succeed.
Futures.get(Future<V> future,
Class<X> exceptionClass)
Returns the result of Future.get(), converting most exceptions to a
new instance of the given checked exception type.
Futures.get(Future<V> future,
long timeout,
TimeUnit unit,
Class<X> exceptionClass)
Returns the result of Future.get(long, TimeUnit), converting most
exceptions to a new instance of the given checked exception type.
MoreExecutors.getExitingExecutorService(ThreadPoolExecutor executor)
Converts the given ThreadPoolExecutor into an ExecutorService that exits
when the application is complete.
MoreExecutors.getExitingExecutorService(ThreadPoolExecutor executor,
long terminationTimeout,
TimeUnit timeUnit)
Converts the given ThreadPoolExecutor into an ExecutorService that exits
when the application is complete.
Futures.successfulAsList(Iterable<? extends ListenableFuture<? extends V>> futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its successful input futures.
Futures.successfulAsList(ListenableFuture<? extends V>... futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its successful input futures.