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.
Predicates.contains(Pattern pattern)
Returns a predicate that evaluates to true if the
CharSequence being tested contains any match for the given
regular expression pattern.
Predicates.containsPattern(String pattern)
Returns a predicate that evaluates to true if the
CharSequence being tested contains any match for the given
regular expression pattern.
Splitter.onPattern(String separatorPattern)
Returns a splitter that considers any subsequence matching a given
pattern (regular expression) to be a separator.
Stopwatch.toString(int significantDigits)
Returns a string representation of the current elapsed time, choosing an
appropriate unit and using the specified number of significant figures.
CacheBuilder.refreshAfterWrite(long duration,
TimeUnit unit)
Specifies that active entries are eligible for automatic refresh once a fixed duration has
elapsed after the entry's creation, or the most recent replacement of its value.
CacheBuilder.removalListener(RemovalListener<? super K1,? super V1> listener)
Specifies a listener instance, which all caches built using this CacheBuilder will
notify each time an entry is removed from the cache by any means.
CacheBuilder.softValues()
Specifies that each value (not key) stored in the cache should be wrapped in a
SoftReference (by default, strong references are used).
CacheBuilder.weakKeys()
Specifies that each key (not value) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
CacheBuilder.weakValues()
Specifies that each value (not key) stored in the cache should be wrapped in a
WeakReference (by default, strong references are used).
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.
SortedMaps.filterEntries(SortedMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate) Deprecated. 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.
SortedMaps.filterKeys(SortedMap<K,V> unfiltered,
Predicate<? super K> keyPredicate) Deprecated. 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.
SortedMaps.filterValues(SortedMap<K,V> unfiltered,
Predicate<? super V> valuePredicate) Deprecated. Returns a sorted map containing the mappings in unfiltered whose
values satisfy a predicate.
Interners.newWeakInterner()
Returns a new thread-safe interner which retains a weak reference to each instance it has
interned, and so does not prevent these instances from being garbage-collected.
MapMaker.softKeys() Deprecated.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.
MapMaker.softValues()
Specifies that each value (not key) stored in the map should be wrapped in a
SoftReference (by default, strong references are used).
static
<T> T[]
Iterables.toArray(Iterable<? extends T> iterable,
Class<T> type)
Copies an iterable's elements into an array.
static
<T> T[]
Iterators.toArray(Iterator<? extends T> iterator,
Class<T> type)
Copies an iterator's elements into an array.
MapMaker.weakKeys()
Specifies that each key (not value) stored in the map should be wrapped in a WeakReference (by default, strong references are used).
MapMaker.weakValues()
Specifies that each value (not key) stored in the map should be wrapped in a
WeakReference (by default, strong references are used).
IntMath.binomial(int n,
int k)
Returns n choose k, also known as the binomial coefficient of n and
k, or Integer.MAX_VALUE if the result does not fit in an int.
static int
IntMath.checkedPow(int b,
int k)
Returns the b to the kth power, provided it does not overflow.
static int
IntMath.divide(int p,
int q,
RoundingMode mode)
Returns the result of dividing p by q, rounding using the specified
RoundingMode.
static int
IntMath.factorial(int n)
Returns n!, that is, the product of the first n positive
integers, 1 if n == 0, or Integer.MAX_VALUE if the
result does not fit in a int.
static int
IntMath.log10(int x,
RoundingMode mode)
Returns the base-10 logarithm of x, rounded according to the specified rounding mode.
static int
IntMath.log2(int x,
RoundingMode mode)
Returns the base-2 logarithm of x, rounded according to the specified rounding mode.
static int
IntMath.pow(int b,
int k)
Returns b to the kth power.
static int
IntMath.sqrt(int x,
RoundingMode mode)
Returns the square root of x, rounded with the specified rounding mode.
Longs.fromByteArray(byte[] bytes)
Returns the long value whose big-endian representation is
stored in the first 8 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getLong().
static int
Ints.fromByteArray(byte[] bytes)
Returns the int value whose big-endian representation is stored in
the first 4 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getInt().
static char
Chars.fromByteArray(byte[] bytes)
Returns the char value whose big-endian representation is
stored in the first 2 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getChar().
static short
Shorts.fromByteArray(byte[] bytes)
Returns the short value whose big-endian representation is
stored in the first 2 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getShort().
static char
Chars.fromBytes(byte b1,
byte b2)
Returns the char value whose byte representation is the given 2
bytes, in big-endian order; equivalent to Chars.fromByteArray(new
byte[] {b1, b2}).
static short
Shorts.fromBytes(byte b1,
byte b2)
Returns the short value whose byte representation is the given 2
bytes, in big-endian order; equivalent to Shorts.fromByteArray(new
byte[] {b1, b2}).
static int
Ints.fromBytes(byte b1,
byte b2,
byte b3,
byte b4)
Returns the int value whose byte representation is the given 4
bytes, in big-endian order; equivalent to Ints.fromByteArray(new
byte[] {b1, b2, b3, b4}).
static long
Longs.fromBytes(byte b1,
byte b2,
byte b3,
byte b4,
byte b5,
byte b6,
byte b7,
byte b8)
Returns the long value whose byte representation is the given 8
bytes, in big-endian order; equivalent to Longs.fromByteArray(new
byte[] {b1, b2, b3, b4, b5, b6, b7, b8}).
UnsignedInteger.multiply(UnsignedInteger val)
Returns the result of multiplying this and val.
static byte[]
Chars.toByteArray(char value)
Returns a big-endian representation of value in a 2-element byte
array; equivalent to ByteBuffer.allocate(2).putChar(value).array().
static byte[]
Ints.toByteArray(int value)
Returns a big-endian representation of value in a 4-element byte
array; equivalent to ByteBuffer.allocate(4).putInt(value).array().
static byte[]
Longs.toByteArray(long value)
Returns a big-endian representation of value in an 8-element byte
array; equivalent to ByteBuffer.allocate(8).putLong(value).array().
static byte[]
Shorts.toByteArray(short value)
Returns a big-endian representation of value in a 2-element byte
array; equivalent to ByteBuffer.allocate(2).putShort(value).array().