| Interface | Description |
|---|---|
| Clock |
A wrapper around the system clock to allow custom implementations to be used in unit tests
where we want to fake or control the clock behavior.
|
| Class | Description |
|---|---|
| ExpiringCache<K,V> |
A semi-persistent mapping from keys to values.
|
| Iterables |
Utility class for dealing with Iterables.
|
| ManualClock |
Mostly for testing, this clock must be explicitly set to a given value.
|
| Memoizer<T> |
A class that can cache the results of computations for a given amount of time.
|
| Objects |
Utility methods for dealing with objects.
|
| Preconditions |
Internal convenience methods that help a method or constructor check whether it was invoked
correctly.
|
| Strings |
Static helpers for
String instances. |
| ThreadCpuStats |
Keep track of the cpu usage for threads in the jvm.
|
| ThreadCpuStats.CpuUsage |
Keeps track of the cpu usage for a single thread.
|
| ThreadFactories |
Simple utility class to create thread factories.
|
| Throwables |
Utility class to deal with exceptions.
|
| TimeLimiter |
Invoke a callable aborting after a certain timout.
|
| UnmodifiableList |
Utility class to create umodifiable views for lists.
|
| UnmodifiableSet |
Utility class to create unmodifiable sets.
|
| Enum | Description |
|---|---|
| ClockWithOffset |
A
Clock that provides a way to modify the time returned by
System.currentTimeMillis(). |
| ThreadCpuStats.CpuUsageComparator |
Comparator for sorting cpu usage based on one of the columns.
|
| Exception | Description |
|---|---|
| TimeLimiter.UncheckedTimeoutException |
Unchecked version of
TimeoutException. |
| Annotation Type | Description |
|---|---|
| VisibleForTesting |
Annotates a program element that exists, or is more widely visible than
otherwise necessary, only for use in test code.
|