guava
Is there something like bytes(byte...b):byte[]?
i am looking fo开发者_StackOverflow中文版r a simple method were i can pass in some bytes, as varargs, and get a byte[] returned, like:[详细]
2023-04-12 19:32 分类:问答Can't build Guava using Maven "mvn package"
I have just read about Guava and checked out its source code but don\'t know how to build it to use. I built jar file using \"mvn package\" but it generates errors of Guava GWT.[详细]
2023-04-12 17:46 分类:问答get the number of instances of an element in a guava multiset without iterating
I have a multiset in guava and I would liketo retrieve the number of instances of a given element without iterating over this multiset (I don\'t want to iterate because I assume that iterating takes q[详细]
2023-04-11 19:56 分类:问答google guava nesting joiner
The Joiner in Google Guava (a superset of Google collection) is really cool. My question is that is there a simple way to deal with nesting collections?[详细]
2023-04-11 15:06 分类:问答Is there a way to get, at runtime, the version of Guava in use?
I did a quick grep of the Guava source and documentation, and neither seem to have any mention of versions. I was wondering if there was a way Guava\'s version information can be obtained at runtime.[详细]
2023-04-11 08:38 分类:问答Why is softKeys() deprecated in Guava 10?
As of Guava 10, 开发者_如何学JAVAMapMaker.softKeys is deprecated, and the corresponding method doesn\'t exist in CacheBuilder.[详细]
2023-04-10 12:05 分类:问答Can CacheBuilder replace MapMaker in my case?
I need to obtain the result of the slow method slowResult() for instances of the class Something. Caching alone doesn\'t help as the instances hardly ever repeat. Fortunately, I know that the result d[详细]
2023-04-10 10:07 分类:问答wget not working to download jar file from maven repo
I\'m trying to download a single jar file from the maven repository, from the URL below. http://repo1.maven.org/maven2/com/google/guava/guava-testlib/10.0/guava-testlib-10.0.jar[详细]
2023-04-09 22:46 分类:问答Creating a String[] from Guava's Splitter
Is there a more efficient 开发者_如何学运维way to create a string array from Guava\'s Splitter than the following?[详细]
2023-04-09 04:33 分类:问答Cycles in chained exceptions
I\'ll first quickly motivate the question with my use case. My library needs to expose a Java exception classifier to a framework which it plugs in to. For example:[详细]
2023-04-08 02:59 分类:问答