Librarys Archive

Example Java MultiMap Google Guava

A collection that maps keys to values, similar to Map, but in which each key may be associated with multiple values. You can visualize the contents of a multimap either as a map from keys tononempty collections of values: a → 1, 2 b → 3 … or as a single “flattened” collection of key-value […]

Example Java CharMatcher Google Guava

Determines a true or false value for any Java char value, just as Predicate does for any Object. Also offers basic text processing methods based on this function. Implementations are strongly encouraged to be side-effect-free and immutable. Throughout the documentation of this class, the phrase “matching character” is used to mean “any character c for […]

Example Java StopWatch Google Guava

What is StopWatch ? StopWatch is part of Google’s Guava library. An object that measures elapsed time in nanoseconds. It is useful to measure elapsed time using this class instead of direct calls to System.nanoTime() for a few reasons: An alternate time source can be substituted, for testing or performance reasons. As documented by nanoTime, […]

Example EvictingQueue Google Guava

What is EvictingQueue ? EvictingQueue is part of Google’s Guava library.A non-blocking queue which automatically evicts elements from the head of the queue when attempting to add new elements onto the queue and it is full. This data structure is logically equivalent to a circular buffer (i.e., cyclic buffer or ring buffer). An evicting queue […]