GuavaGoogle’s Core Libraries for java                작성일       2011-09-25                작성자    커뮤니티개발1팀 정희경
Contents   Guava Overview   Guava vs Apache Commons   Guava Library & Examples   Guava Pros & Cons
Guava Overview Google’s core Java libraries for Java 5+ The Apache Software License, Version 2.0 Similar to Apache Comm...
Guava vs Apache Commons Generics   Guava targets Java 5 - Greatly benefits from the   Java 5 features: generics, enums, ...
Guava vs Apache Commons Consistency with Collections framework Correctness – don’t need to test Guava has only one code...
Guava Library & Examples The Guava Packages
Guava Library & Examples com.google.common.base  common code used by other package
Guava Library & Examples com.google.common.base.Preconditions  Validation checks before execution
Guava Library & Examples com.google.common.base.Preconditions   Validation checks before execution     Additional excep...
Guava Library & Examples com.google.common.base.Joiner
Guava Library & Examples com.google.common.base.Splitter
Guava Library & Examples com.google.common.base.Objects  Makes it easy to implement hashcode/ equals
Guava Library & Examples com.google.common.io.Files  for working with Java I/O Collection.                              ...
Guava Library & Examples com.google.common.io.Files  for working with Java I/O Collection.                        com.go...
Guava Library & Examples com.google.common.io.Files
Guava Library & Examples com.google.common.collect  Contains generic collection interfaces and impleme   ntations, other...
Guava Library & Examples com.google.common.collect
Guava Library & Examples com.google.common.collect.Multimaps  allow multiple values to be stored for every key
Guava Library & Examples com.google.common.collect.BiMap  one-to-one bidirectional relationship between key   and value ...
Guava Library & Examples com.google.common.collect.Constraints   Similar to preconditions in a way that they can restri ...
Guava Pros & Cons Guava targets Java 5 - Greatly benefits from the  Java 5 features: generics Guava is very well designe...
Guava Pros & Cons Its not a sufficient replacement for Apache Commons, in particular commons-codec If youre in an enviro...
Q&A
감사합니다 
Upcoming SlideShare
Loading in …5
×

Google guava(최종)

1,551 views

Published on

Published in: Technology, Education
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,551
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Google guava(최종)

  1. 1. GuavaGoogle’s Core Libraries for java 작성일 2011-09-25 작성자 커뮤니티개발1팀 정희경
  2. 2. Contents Guava Overview Guava vs Apache Commons Guava Library & Examples Guava Pros & Cons
  3. 3. Guava Overview Google’s core Java libraries for Java 5+ The Apache Software License, Version 2.0 Similar to Apache Commons Extension of the Java Collections Framework Google Collection
  4. 4. Guava vs Apache Commons Generics  Guava targets Java 5 - Greatly benefits from the Java 5 features: generics, enums, autoboxing ..
  5. 5. Guava vs Apache Commons Consistency with Collections framework Correctness – don’t need to test Guava has only one code dependency - javax.annotation
  6. 6. Guava Library & Examples The Guava Packages
  7. 7. Guava Library & Examples com.google.common.base  common code used by other package
  8. 8. Guava Library & Examples com.google.common.base.Preconditions  Validation checks before execution
  9. 9. Guava Library & Examples com.google.common.base.Preconditions  Validation checks before execution  Additional exception types  Better handling of message arguments  In Apache Commons  In Guava  Easy assignment after not null check  In Apache Commons  In Guava
  10. 10. Guava Library & Examples com.google.common.base.Joiner
  11. 11. Guava Library & Examples com.google.common.base.Splitter
  12. 12. Guava Library & Examples com.google.common.base.Objects  Makes it easy to implement hashcode/ equals
  13. 13. Guava Library & Examples com.google.common.io.Files  for working with Java I/O Collection. java.io.File org.apache.commons.io.FileUtils
  14. 14. Guava Library & Examples com.google.common.io.Files  for working with Java I/O Collection. com.google.common.io.Files Result
  15. 15. Guava Library & Examples com.google.common.io.Files
  16. 16. Guava Library & Examples com.google.common.collect  Contains generic collection interfaces and impleme ntations, other utilities for working with collections  Collection Types  BiMap  Multiset  Mutimap  ListMultimap  SetMultimap  SortedSetMultimap  Table  ClassToInstanceMap
  17. 17. Guava Library & Examples com.google.common.collect
  18. 18. Guava Library & Examples com.google.common.collect.Multimaps  allow multiple values to be stored for every key
  19. 19. Guava Library & Examples com.google.common.collect.BiMap  one-to-one bidirectional relationship between key and value of the Map
  20. 20. Guava Library & Examples com.google.common.collect.Constraints  Similar to preconditions in a way that they can restri ct what values are added to a collection
  21. 21. Guava Pros & Cons Guava targets Java 5 - Greatly benefits from the Java 5 features: generics Guava is very well designed / documented  The code is useful patterns to make the API more readable, secure, thread-safe.. Functional programming support
  22. 22. Guava Pros & Cons Its not a sufficient replacement for Apache Commons, in particular commons-codec If youre in an environment requiring Java 1.3 or 1.4, youre out of luck.
  23. 23. Q&A
  24. 24. 감사합니다 

×