guava
Maps.uniqueIndex() for Multimap?
We can use Maps.uniqueIndex() to create a Map out of any Iterable w开发者_运维知识库hich is very handy. But I need to create a Multimap and I\'m having Iterable, is there any nice way to create a Mult[详细]
2023-02-26 16:18 分类:问答What's the difference between Collections.unmodifiableSet() and ImmutableSet of Guava?
JavaDoc of ImmutableSet says: Unlike Collections.unmodifiableSet, which is a view of a separate collection that can still change, an instance of this class contains its own private data and will ne[详细]
2023-02-23 16:33 分类:问答What is the best Guava (Google) collection API to represent direct or inverse relationship between two or multiple factors?
BiMap do have inverse method but I am not sure it is a right collection to use for the problem. Can someone please suggest alternative approach or collection/method? An example would be help开发者_开发[详细]
2023-02-22 22:00 分类:问答How to return N consecutive elements from a Collection?
I am passed a collection of objects (some Contact class in my case) and need to return a page from that collection.[详细]
2023-02-22 00:05 分类:问答Multimaps.index() but producing a NavigableMap?
I need what is effectively an ImmutableNavigableListMultimap<Integer, HasOffset> where HasOffset looks like:[详细]
2023-02-21 10:51 分类:问答How to map a value back to an enum?
Given an enum where each instance is associated with some value: public enum SQLState { SUCCESSFUL_COMPLETION(\"00000\"),[详细]
2023-02-21 02:56 分类:问答Is there a bidirectional function in Guava?
So, I need function with API like interface BiFunction<A, B> { B aToB(A input);开发者_如何转开发[详细]
2023-02-20 00:38 分类:问答linking to guava javadoc
What开发者_运维知识库 is the correct URL for linking to Guava javadocs from your project\'s javadoc?[详细]
2023-02-19 14:49 分类:问答HashMap that can infer key name with name of value's class
Is there something out there, maybe Guava, that could infer the key name of a HashMap from the either the classname or variable name of the key value? Like:[详细]
2023-02-19 02:59 分类:问答When should I use weakValues() of the MapMaker class?
When a entry in 开发者_运维技巧a map has weak key reference, the entry will be removed at the next garbage collection, right?[详细]
2023-02-17 16:55 分类:问答