Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

AbstractFuture<V> - Class in com.nytimes.android.external.cache
 
AbstractFuture() - Constructor for class com.nytimes.android.external.cache.AbstractFuture
Constructor for use by subclasses.
AbstractFuture.TrustedFuture<V> - Class in com.nytimes.android.external.cache
A less abstract subclass of AbstractFuture.
AbstractSequentialIterator<T> - Class in com.nytimes.android.external.cache
 
AbstractSequentialIterator(T) - Constructor for class com.nytimes.android.external.cache.AbstractSequentialIterator
Creates a new iterator with the given first element, or, if firstOrNull is null, creates a new empty iterator.
add(String, Object) - Method in class com.nytimes.android.external.cache.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, int) - Method in class com.nytimes.android.external.cache.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, long) - Method in class com.nytimes.android.external.cache.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
addListener(Runnable, Executor) - Method in class com.nytimes.android.external.cache.AbstractFuture
addListener(Runnable, Executor) - Method in class com.nytimes.android.external.cache.AbstractFuture.TrustedFuture
 
addListener(Runnable, Executor) - Method in interface com.nytimes.android.external.cache.ListenableFuture
 
addValue(Object) - Method in class com.nytimes.android.external.cache.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
apply(F) - Method in interface com.nytimes.android.external.cache.Function
 
apply(K) - Method in interface com.nytimes.android.external.cache.LoadingCache
Deprecated.
Provided to satisfy the Function interface; use LoadingCache.get(K) or LoadingCache.getUnchecked(K) instead.
Ascii - Class in com.nytimes.android.external.cache
 
asMap() - Method in interface com.nytimes.android.external.cache.Cache
Returns a view of the entries stored in this cache as a thread-safe map.
asMap() - Method in class com.nytimes.android.external.cache.ForwardingCache
 
asMap() - Method in interface com.nytimes.android.external.cache.LoadingCache
Returns a view of the entries stored in this cache as a thread-safe map.

B

build(CacheLoader<? super K1, V1>) - Method in class com.nytimes.android.external.cache.CacheBuilder
Builds a cache, which either returns an already-loaded value for a given key or atomically computes or retrieves it using the supplied CacheLoader.
build() - Method in class com.nytimes.android.external.cache.CacheBuilder
 

C

Cache<K,V> - Interface in com.nytimes.android.external.cache
 
CacheBuilder<K,V> - Class in com.nytimes.android.external.cache
 
CacheLoader<K,V> - Class in com.nytimes.android.external.cache
 
CacheLoader() - Constructor for class com.nytimes.android.external.cache.CacheLoader
Constructor for use by subclasses.
CacheLoader.InvalidCacheLoadException - Exception in com.nytimes.android.external.cache
Thrown to indicate that an invalid response was returned from a call to CacheLoader.
CacheLoader.UnsupportedLoadingOperationException - Exception in com.nytimes.android.external.cache
Exception thrown by loadAll() to indicate that it is not supported.
cancel(boolean) - Method in class com.nytimes.android.external.cache.AbstractFuture
checkArgument(boolean) - Static method in class com.nytimes.android.external.cache.Preconditions
 
checkArgument(boolean, Object) - Static method in class com.nytimes.android.external.cache.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(boolean, String, Object...) - Static method in class com.nytimes.android.external.cache.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkNotNull(T) - Static method in class com.nytimes.android.external.cache.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNull(T, String) - Static method in class com.nytimes.android.external.cache.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkState(boolean) - Static method in class com.nytimes.android.external.cache.Preconditions
 
checkState(boolean, Object) - Static method in class com.nytimes.android.external.cache.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
checkState(boolean, String, Object...) - Static method in class com.nytimes.android.external.cache.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
cleanUp() - Method in interface com.nytimes.android.external.cache.Cache
Performs any pending maintenance operations needed by the cache.
cleanUp() - Method in class com.nytimes.android.external.cache.ForwardingCache
 
com.nytimes.android.external.cache - package com.nytimes.android.external.cache
 
computeNext(T) - Method in class com.nytimes.android.external.cache.AbstractSequentialIterator
Returns the element that follows previous, or returns null if no elements remain.
concurrencyLevel(int) - Method in class com.nytimes.android.external.cache.CacheBuilder
Guides the allowed concurrency among update operations.
create(K, V, RemovalCause) - Static method in class com.nytimes.android.external.cache.RemovalNotification
Creates a new RemovalNotification for the given key/value pair, with the given cause for the removal.
create() - Static method in class com.nytimes.android.external.cache.SettableFuture
Creates a new SettableFuture in the default state.
createStarted() - Static method in class com.nytimes.android.external.cache.Stopwatch
Creates (and starts) a new stopwatch using System.nanoTime() as its time source.
createUnstarted() - Static method in class com.nytimes.android.external.cache.Stopwatch
Creates (but does not start) a new stopwatch using System.nanoTime() as its time source.

D

delegate() - Method in class com.nytimes.android.external.cache.ForwardingCache
 
delegate() - Method in class com.nytimes.android.external.cache.ForwardingObject
 
doEquivalent(T, T) - Method in class com.nytimes.android.external.cache.Equivalence
Returns true if a and b are considered equivalent.
doHash(T) - Method in class com.nytimes.android.external.cache.Equivalence
Returns a hash code for non-null object t.

E

equal(Object, Object) - Static method in class com.nytimes.android.external.cache.Objects
Determines whether two possibly-null objects are equal.
equals() - Static method in class com.nytimes.android.external.cache.Equivalence
Returns an equivalence that delegates to Object.equals(java.lang.Object) and Object.hashCode().
equals(Object) - Method in interface com.nytimes.android.external.cache.Function
 
equals(Object) - Method in class com.nytimes.android.external.cache.RemovalNotification
 
Equivalence<T> - Class in com.nytimes.android.external.cache
A strategy for determining whether two instances are considered equivalent.
Equivalence() - Constructor for class com.nytimes.android.external.cache.Equivalence
Constructor for use by subclasses.
equivalent(T, T) - Method in class com.nytimes.android.external.cache.Equivalence
Returns true if the given objects are considered equivalent.
ExecutionError - Error in com.nytimes.android.external.cache
 
ExecutionError(Error) - Constructor for error com.nytimes.android.external.cache.ExecutionError
Creates a new instance with the given cause.
expireAfterAccess(long, TimeUnit) - Method in class com.nytimes.android.external.cache.CacheBuilder
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
expireAfterWrite(long, TimeUnit) - Method in class com.nytimes.android.external.cache.CacheBuilder
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.

F

firstNonNull(T, T) - Static method in class com.nytimes.android.external.cache.MoreObjects
 
ForwardingCache<K,V> - Class in com.nytimes.android.external.cache
 
ForwardingCache() - Constructor for class com.nytimes.android.external.cache.ForwardingCache
Constructor for use by subclasses.
ForwardingObject - Class in com.nytimes.android.external.cache
 
ForwardingObject() - Constructor for class com.nytimes.android.external.cache.ForwardingObject
Constructor for use by subclasses.
from(Function<K, V>) - Static method in class com.nytimes.android.external.cache.CacheLoader
Returns a cache loader based on an existing function instance.
from(Supplier<V>) - Static method in class com.nytimes.android.external.cache.CacheLoader
Returns a cache loader based on an existing supplier instance.
Function<F,T> - Interface in com.nytimes.android.external.cache
 
Futures - Class in com.nytimes.android.external.cache
 

G

get(long, TimeUnit) - Method in class com.nytimes.android.external.cache.AbstractFuture
get() - Method in class com.nytimes.android.external.cache.AbstractFuture
get() - Method in class com.nytimes.android.external.cache.AbstractFuture.TrustedFuture
 
get(long, TimeUnit) - Method in class com.nytimes.android.external.cache.AbstractFuture.TrustedFuture
 
get(K, Callable<? extends V>) - Method in interface com.nytimes.android.external.cache.Cache
Returns the value associated with key in this cache, obtaining that value from valueLoader if necessary.
get(K, Callable<? extends V>) - Method in class com.nytimes.android.external.cache.ForwardingCache
 
get(K) - Method in interface com.nytimes.android.external.cache.LoadingCache
Returns the value associated with key in this cache, first loading that value if necessary.
get() - Method in interface com.nytimes.android.external.cache.Supplier
 
getAll(Iterable<? extends K>) - Method in interface com.nytimes.android.external.cache.LoadingCache
Returns a map of the values associated with keys, creating or retrieving those values if necessary.
getAllPresent(Iterable<?>) - Method in interface com.nytimes.android.external.cache.Cache
Returns a map of the values associated with keys in this cache.
getAllPresent(Iterable<?>) - Method in class com.nytimes.android.external.cache.ForwardingCache
 
getChecked(Future<V>, Class<X>) - Static method in class com.nytimes.android.external.cache.Futures
 
getChecked(Future<V>, Class<X>, long, TimeUnit) - Static method in class com.nytimes.android.external.cache.Futures
 
getIfPresent(Object) - Method in interface com.nytimes.android.external.cache.Cache
Returns the value associated with key in this cache, or null if there is no cached value for key.
getIfPresent(Object) - Method in class com.nytimes.android.external.cache.ForwardingCache
 
getKey() - Method in class com.nytimes.android.external.cache.RemovalNotification
 
getUnchecked(K) - Method in interface com.nytimes.android.external.cache.LoadingCache
Returns the value associated with key in this cache, first loading that value if necessary.
getUninterruptibly(Future<V>) - Static method in class com.nytimes.android.external.cache.Uninterruptibles
Invokes future.get() uninterruptibly.
getValue() - Method in class com.nytimes.android.external.cache.RemovalNotification
 

H

hash(T) - Method in class com.nytimes.android.external.cache.Equivalence
Returns a hash code for t.
hashCode() - Method in class com.nytimes.android.external.cache.RemovalNotification
 
hasNext() - Method in class com.nytimes.android.external.cache.AbstractSequentialIterator
 

I

identity() - Static method in class com.nytimes.android.external.cache.Equivalence
Returns an equivalence that uses == to compare values and System.identityHashCode(Object) to compute the hash code.
immediateFailedFuture(Throwable) - Static method in class com.nytimes.android.external.cache.Futures
 
immediateFuture(V) - Static method in class com.nytimes.android.external.cache.Futures
 
interruptTask() - Method in class com.nytimes.android.external.cache.AbstractFuture
Subclasses can override this method to implement interruption of the future's computation.
invalidate(Object) - Method in interface com.nytimes.android.external.cache.Cache
Discards any cached value for key key.
invalidate(Object) - Method in class com.nytimes.android.external.cache.ForwardingCache
 
invalidateAll(Iterable<?>) - Method in interface com.nytimes.android.external.cache.Cache
Discards any cached values for keys keys.
invalidateAll() - Method in interface com.nytimes.android.external.cache.Cache
Discards all entries in the cache.
invalidateAll(Iterable<?>) - Method in class com.nytimes.android.external.cache.ForwardingCache
 
invalidateAll() - Method in class com.nytimes.android.external.cache.ForwardingCache
 
InvalidCacheLoadException(String) - Constructor for exception com.nytimes.android.external.cache.CacheLoader.InvalidCacheLoadException
 
isCancelled() - Method in class com.nytimes.android.external.cache.AbstractFuture
 
isCancelled() - Method in class com.nytimes.android.external.cache.AbstractFuture.TrustedFuture
 
isDone() - Method in class com.nytimes.android.external.cache.AbstractFuture
 
isDone() - Method in class com.nytimes.android.external.cache.AbstractFuture.TrustedFuture
 
isUpperCase(char) - Static method in class com.nytimes.android.external.cache.Ascii
Indicates whether c is one of the twenty-six uppercase ASCII alphabetic characters between 'A' and 'Z' inclusive.

L

ListenableFuture<V> - Interface in com.nytimes.android.external.cache
 
load(K) - Method in class com.nytimes.android.external.cache.CacheLoader
Computes or retrieves the value corresponding to key.
loadAll(Iterable<? extends K>) - Method in class com.nytimes.android.external.cache.CacheLoader
 
LoadingCache<K,V> - Interface in com.nytimes.android.external.cache
 

M

maximumSize(long) - Method in class com.nytimes.android.external.cache.CacheBuilder
Specifies the maximum number of entries the cache may contain.
maximumWeight(long) - Method in class com.nytimes.android.external.cache.CacheBuilder
Specifies the maximum weight of entries the cache may contain.
MoreObjects - Class in com.nytimes.android.external.cache
 
MoreObjects.ToStringHelper - Class in com.nytimes.android.external.cache

N

newBuilder() - Static method in class com.nytimes.android.external.cache.CacheBuilder
Constructs a new CacheBuilder instance with default settings, including strong keys, strong values, and no automatic eviction of any kind.
next() - Method in class com.nytimes.android.external.cache.AbstractSequentialIterator
 

O

Objects - Class in com.nytimes.android.external.cache
Helper functions that can operate on any Object.
onRemoval(RemovalNotification<K, V>) - Method in interface com.nytimes.android.external.cache.RemovalListener
Notifies the listener that a removal occurred at some point in the past.

P

Preconditions - Class in com.nytimes.android.external.cache
An adaptation of Guava's com.google.common.base.Preconditions that is specially tailored to support checks applied in Dagger's generated code.
put(K, V) - Method in interface com.nytimes.android.external.cache.Cache
Associates value with key in this cache.
put(K, V) - Method in class com.nytimes.android.external.cache.ForwardingCache
 
putAll(Map<? extends K, ? extends V>) - Method in interface com.nytimes.android.external.cache.Cache
Copies all of the mappings from the specified map to the cache.
putAll(Map<? extends K, ? extends V>) - Method in class com.nytimes.android.external.cache.ForwardingCache
 

R

read() - Method in class com.nytimes.android.external.cache.Ticker
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
refresh(K) - Method in interface com.nytimes.android.external.cache.LoadingCache
Loads a new value for key key, possibly asynchronously.
reload(K, V) - Method in class com.nytimes.android.external.cache.CacheLoader
 
RemovalCause - Enum in com.nytimes.android.external.cache
The reason why a cached entry was removed.
removalListener(RemovalListener<? super K1, ? super V1>) - Method in class com.nytimes.android.external.cache.CacheBuilder
Specifies a listener instance that caches should notify each time an entry is removed for any reason.
RemovalListener<K,V> - Interface in com.nytimes.android.external.cache
 
RemovalNotification<K,V> - Class in com.nytimes.android.external.cache
 
remove() - Method in class com.nytimes.android.external.cache.UnmodifiableIterator
Deprecated.
Unsupported operation.

S

set(V) - Method in class com.nytimes.android.external.cache.AbstractFuture
Sets the result of this Future unless this Future has already been cancelled or set (including set asynchronously).
set(V) - Method in class com.nytimes.android.external.cache.SettableFuture
 
setException(Throwable) - Method in class com.nytimes.android.external.cache.AbstractFuture
Sets the failed result of this Future unless this Future has already been cancelled or set (including set asynchronously).
setException(Throwable) - Method in class com.nytimes.android.external.cache.SettableFuture
 
setFuture(ListenableFuture<? extends V>) - Method in class com.nytimes.android.external.cache.AbstractFuture
Sets the result of this Future to match the supplied input Future once the supplied Future is done, unless this Future has already been cancelled or set (including "set asynchronously," defined below).
setFuture(ListenableFuture<? extends V>) - Method in class com.nytimes.android.external.cache.SettableFuture
 
SettableFuture<V> - Class in com.nytimes.android.external.cache
 
setValue(V) - Method in class com.nytimes.android.external.cache.RemovalNotification
 
size() - Method in interface com.nytimes.android.external.cache.Cache
Returns the approximate number of entries in this cache.
size() - Method in class com.nytimes.android.external.cache.ForwardingCache
 
start() - Method in class com.nytimes.android.external.cache.Stopwatch
Starts the stopwatch.
stop() - Method in class com.nytimes.android.external.cache.Stopwatch
Stops the stopwatch.
Stopwatch - Class in com.nytimes.android.external.cache
An object that measures elapsed time in nanoseconds.
Supplier<T> - Interface in com.nytimes.android.external.cache
 
systemTicker() - Static method in class com.nytimes.android.external.cache.Ticker
A ticker that reads the current time using System.nanoTime().

T

ticker(Ticker) - Method in class com.nytimes.android.external.cache.CacheBuilder
Specifies a nanosecond-precision time source for this cache.
Ticker - Class in com.nytimes.android.external.cache
 
Ticker() - Constructor for class com.nytimes.android.external.cache.Ticker
Constructor for use by subclasses.
toLowerCase(String) - Static method in class com.nytimes.android.external.cache.Ascii
Returns a copy of the input string in which all uppercase ASCII characters have been converted to lowercase.
toString() - Method in class com.nytimes.android.external.cache.CacheBuilder
Returns a string representation for this CacheBuilder instance.
toString() - Method in class com.nytimes.android.external.cache.ForwardingObject
Returns the string representation generated by the delegate's toString method.
toString() - Method in class com.nytimes.android.external.cache.MoreObjects.ToStringHelper
Returns a string in the format specified by MoreObjects.toStringHelper(Object).
toString() - Method in class com.nytimes.android.external.cache.RemovalNotification
Returns a string representation of the form {key}={value}.
toString() - Method in class com.nytimes.android.external.cache.Stopwatch
Returns a string representation of the current elapsed time.
toStringHelper(Object) - Static method in class com.nytimes.android.external.cache.MoreObjects
Creates an instance of MoreObjects.ToStringHelper.
transform(ListenableFuture<I>, Function<? super I, ? extends O>) - Static method in class com.nytimes.android.external.cache.Futures
 
TrustedFuture() - Constructor for class com.nytimes.android.external.cache.AbstractFuture.TrustedFuture
 

U

UncheckedExecutionException - Exception in com.nytimes.android.external.cache
 
UncheckedExecutionException(Throwable) - Constructor for exception com.nytimes.android.external.cache.UncheckedExecutionException
Creates a new instance with the given cause.
Uninterruptibles - Class in com.nytimes.android.external.cache
 
UnmodifiableIterator<E> - Class in com.nytimes.android.external.cache
 
UnmodifiableIterator() - Constructor for class com.nytimes.android.external.cache.UnmodifiableIterator
Constructor for use by subclasses.

V

valueOf(String) - Static method in enum com.nytimes.android.external.cache.RemovalCause
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.nytimes.android.external.cache.RemovalCause
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasInterrupted() - Method in class com.nytimes.android.external.cache.AbstractFuture
Returns true if this future was cancelled with mayInterruptIfRunning set to true.
weigh(K, V) - Method in interface com.nytimes.android.external.cache.Weigher
Returns the weight of a cache entry.
weigher(Weigher<? super K1, ? super V1>) - Method in class com.nytimes.android.external.cache.CacheBuilder
Specifies the weigher to use in determining the weight of entries.
Weigher<K,V> - Interface in com.nytimes.android.external.cache
 
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links