guava
Google MapMaker maximumSize Beta?
MapMaker maximumSize in google guava library is marked as @Beta. It\'s a very useful feature to set the maximum size when you use it 开发者_如何学Goas a cache and I would like to use it in production[详细]
2023-03-04 22:57 分类:问答ImmutableMap.of() workaround for HashMap in Maps?
There are utility methods to create ImmutableMap like Immutable.of(Key, value) and its overload. But such methods don\'t exist for HashMap or LinkedHashMap in Maps class.[详细]
2023-03-04 16:10 分类:问答Using Google Guava with Android 1.6
I\'m using the Guava r09 library in an Android app but I\'m getting the following error when I use it with 1.6. It\'s a bit strange because it works fine in 1.5. Also, the method that is \"not found\"[详细]
2023-03-04 06:01 分类:问答Laziness of eviction in Guava's maps
Current eviction algorithm for maps is quite lazy. It looks like expired objects are evicted only when the data structure is accessed.[详细]
2023-03-02 21:17 分类:问答restartable linked hash map iteration, possible via guava
Guava\'s AbstractLinkedIterator class seems to exist to allow for restarting an iteration in the middle of something like a LinkedHashMap. But I\'m failing to find any classes in guava that开发者_JAV[详细]
2023-03-01 22:24 分类:问答Text file into Java Set<String> using Commons or Guava
I w开发者_运维知识库ould like to load each line in a file into HashSet collection. Is there a simple way to do this?How about:[详细]
2023-03-01 13:52 分类:问答Cons an Iterable [closed]
It's difficult开发者_运维问答 to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.[详细]
2023-02-28 19:59 分类:问答Extracting objects from List<X> based on some other list property collection
I\'ve a class - public class Data implements Identifiable{ private Integer id; public Integer getId(){ return id;[详细]
2023-02-28 11:35 分类:问答How to convert Map<String, String> to Map<Long, String> ? (option : using guava)
I have a Map<String, String&开发者_如何学运维gt; the String key is nothing but numeric value like \"123\" etc. I\'m getting numeric value because this values are coming from the UI in my JSF compon[详细]
2023-02-28 04:07 分类:问答Using Guava bundled with GWT
GWT 2.2 and later includes Guava. The package containing Guava is com.google.gw开发者_开发问答t.thirdparty.guava. However, there doesn\'t seem to be a module XML file that would allow this package to[详细]
2023-02-27 11:09 分类:问答