¡@

Home 

java Programming Glossary: guava

Apache Commons vs. Guava (formerly “Google Collections”) [closed]

http://stackoverflow.com/questions/1444437/apache-commons-vs-guava-formerly-google-collections

Commons vs. Guava formerly &ldquo Google Collections&rdquo closed I was looking.. upon these two libraries Apache Commons Collections Guava formerly Google Collections Both are free have the bidirectional.. improve this question In my opinion the better choice is Guava formerly known as Google collections it's more modern has generics..

Java: convert List<String> to a join()d string

http://stackoverflow.com/questions/1751844/java-convert-liststring-to-a-joind-string

are fine and that is what most people use but I think the Guava equivalent Joiner has a much nicer API. You can do the simple..

Predicate in Java

http://stackoverflow.com/questions/2955043/predicate-in-java

talking about com.google.common.base.Predicate T from Guava. From the API Determines a true or false value for a given input...

What is simplest way to read a file into String?

http://stackoverflow.com/questions/3402735/what-is-simplest-way-to-read-a-file-into-string

very reputable and highly useful third party libraries Guava com.google.common.io.Files contains many useful methods. The..

How to replace special characters in a string?

http://stackoverflow.com/questions/4283351/how-to-replace-special-characters-in-a-string

alphaAndDigits input.replaceAll ^ p Alpha p Digit Or with Guava private static final CharMatcher ALNUM CharMatcher.inRange 'a'..

Apache Commons equals/hashCode builder

http://stackoverflow.com/questions/5038204/apache-commons-equals-hashcode-builder

with and without hibernate . But as Alain writes the Guava way is even nicer Here's a sample Bean public class Bean private.. other.children .isEquals else return false and here with Guava @Override public int hashCode return Objects.hashCode name length.. other.children else return false As you can see the Guava version is shorter and avoids superfluous helper objects. In..

Where do I find a standard Trie based map implementation in Java?

http://stackoverflow.com/questions/623892/where-do-i-find-a-standard-trie-based-map-implementation-in-java

What is the most efficient Java Collections library? [closed]

http://stackoverflow.com/questions/629804/what-is-the-most-efficient-java-collections-library

collections in the JDK. Personally and I'm biased I love Guava including the former Google Java Collections project . It makes.. as readable. Given that the overlap between Trove and the Guava is pretty much nil perhaps you could clarify what you're actually..

What is the best macro-benchmarking tool / framework to measure a single-threaded complex algorithm in Java? [closed]

http://stackoverflow.com/questions/7146207/what-is-the-best-macro-benchmarking-tool-framework-to-measure-a-single-threade

Android apps. Looks young but promising. Depends on Google Guava Commons monitoring not parameterizable Java library no JVM micro..

Sorting Java objects using multiple keys

http://stackoverflow.com/questions/8036429/sorting-java-objects-using-multiple-keys

improve this question It doesn't look too bad. Using Guava you might simply do this return ComparisonChain.start .compare..

Map that could be iterated in the order of values

http://stackoverflow.com/questions/8896679/map-that-could-be-iterated-in-the-order-of-values

Does any of the standard libraries like Apache Commons or Guava provide this kind of map java collections map guava apache.. share improve this question I would do this with Guava as follows Ordering Map.Entry Key Value entryOrdering Ordering.from..

Map implementation with duplicate keys

http://stackoverflow.com/questions/1062960/map-implementation-with-duplicate-keys

collections or google collections java duplicate data guava multimap share improve this question You are searching for..

Bi-directional Map in Java?

http://stackoverflow.com/questions/10699492/bi-directional-map-in-java

be worth to go for a complicated solution. java map guava apache commons share improve this question You can use the..

Apache Commons vs. Guava (formerly “Google Collections”) [closed]

http://stackoverflow.com/questions/1444437/apache-commons-vs-guava-formerly-google-collections

5 or anything like that. java collections apache commons guava share improve this question In my opinion the better choice..

Guava libraries and GWT

http://stackoverflow.com/questions/2005687/guava-libraries-and-gwt

Guava libraries project. Do these work with GWT java gwt guava share improve this question From the introductory PDF on..

Managing highly repetitive code and documentation in Java

http://stackoverflow.com/questions/2337170/managing-highly-repetitive-code-and-documentation-in-java

all bits off in hashCode vs in hashCode java maintenance guava preprocessor share improve this question For people that..

Predicate in Java

http://stackoverflow.com/questions/2955043/predicate-in-java

implementation in java Google didnt help much... java guava predicate share improve this question I'm assuming you're..

Format file size as MB, GB etc [duplicate]

http://stackoverflow.com/questions/3263892/format-file-size-as-mb-gb-etc

solution in a public library like apache commons or google guava. If there isn't can someone show me how to get rid of the '.0'..

The Guava library for java; what are its most useful and/or hidden features [closed]

http://stackoverflow.com/questions/3759440/the-guava-library-for-java-what-are-its-most-useful-and-or-hidden-features

or hidden features closed I have had a quick scan of the guava api and the new collection types it provides multimap and bimap.. main benefit time saver What are its hidden features java guava share improve this question Seriously everything in Guava..

How do you format the day of the month to say “11th”, “21st” or “23rd” in Java?

http://stackoverflow.com/questions/4011075/how-do-you-format-the-day-of-the-month-to-say-11th-21st-or-23rd-in-java

share improve this question http code.google.com p guava libraries import static com.google.common.base.Preconditions...

Simplest way to iterate through a Multiset in the order of element frequency?

http://stackoverflow.com/questions/4345633/simplest-way-to-iterate-through-a-multiset-in-the-order-of-element-frequency

keep elements frequency ordered either. java guava multiset share improve this question I just added this feature..

How do you access Google service using a java client?

http://stackoverflow.com/questions/4883123/how-do-you-access-google-service-using-a-java-client

Combine multiple Collections into a single logical Collection?

http://stackoverflow.com/questions/4896662/combine-multiple-collections-into-a-single-logical-collection

iterate over all elements ideally read only . I'm using guava collections and I wonder how I could use guava iterables iterators.. . I'm using guava collections and I wonder how I could use guava iterables iterators to generate a logical view on the internal.. without making temporary copies. java collections guava share improve this question Use Iterables.concat Iterable..

Google Guava isNullOrEmpty for collections

http://stackoverflow.com/questions/6910002/google-guava-isnullorempty-for-collections

which should be equivalent to arr null arr.length 0 java guava share improve this question I don't believe that is null..

NoSuchFieldError when trying to run a jUnit test with Spring

http://stackoverflow.com/questions/7688395/nosuchfielderror-when-trying-to-run-a-junit-test-with-spring

INFO org.w3c.css sac jar 1.3 compile INFO com.google.guava guava jar r08 compile INFO org.hibernate hibernate validator.. INFO org.w3c.css sac jar 1.3 compile INFO com.google.guava guava jar r08 compile INFO org.hibernate hibernate validator jar 4.2.0.Final..

Bidirectional multi-valued map in Java

http://stackoverflow.com/questions/8066109/bidirectional-multi-valued-map-in-java

SERVICES_TO_ROLES_MAPPING.inverse before guava 11.0 it was ImmutableMultimap.copyOf Multimaps.invertFrom SERVICES_TO_ROLES_MAPPING..

SLF4J NoSuchMethodError on LocationAwareLogger

http://stackoverflow.com/questions/8252597/slf4j-nosuchmethoderror-on-locationawarelogger

dependencies skipped dependency groupId com.google.guava groupId artifactId guava artifactId version 10.0.1 version dependency.. dependency groupId com.google.guava groupId artifactId guava artifactId version 10.0.1 version dependency Spring dependency..

Map that could be iterated in the order of values

http://stackoverflow.com/questions/8896679/map-that-could-be-iterated-in-the-order-of-values

or Guava provide this kind of map java collections map guava apache commons share improve this question I would do this..

What's the point of Guava's Optional class

http://stackoverflow.com/questions/9561295/whats-the-point-of-guavas-optional-class

with a more convincing argument Thank you. java generics guava share improve this question Guava team member here. Probably..