Google's Java Common class library guava

Source: Internet
Author: User
Tags hash reflection

Guava Chinese is pomegranate meaning, the project is a Google Open source project, contains a lot of Google Core Java Common library.

1. Fundamental tools [Basic utilities]

Make it more comfortable to use the Java language

1.1 Using and avoiding null:null is ambiguous and can cause confusing mistakes, sometimes it makes people uncomfortable. Many guava tool classes reject null values with fast failures, rather than blindly accept

1.2 Preconditions: Make the condition check in the method simpler

1.3 Common Object methods: Simplifies object method implementations, such as Hashcode () and ToString ()

1.4 Sort: Guava powerful "fluent style comparator"

1.5 Throwables: Simplifies the propagation and inspection of anomalies and errors

2. Collection [Collections]

Guava extensions to the JDK collection, which is the most mature and known part of guava

2.1 Immutable set: Defensive programming and performance improvement with invariant sets.

2.2 New collection types: multisets, multimaps, tables, bidirectional maps, etc.

2.3 Powerful Collection Tool class: Provides collection tools not available in Java.util.Collections

2.4 Extension Tool classes: making it easier to implement and extend a collection class, such as creating a collection adorner, or implementing an iterator

3. Caching [Caches]

More Wonderful content: http://www.bianceng.cn/Programming/Java/

Guava cache: Locally cached implementation, supports multiple cache expiration policies

4. Functional style [functional idioms]

Guava's functional support can significantly simplify your code, but use it sparingly

5. Concurrent [concurrency]

Powerful and simple abstraction makes it easier to write the right concurrency code

5.1 listenablefuture: Future that triggers the callback upon completion

5.2 Service Framework: An abstraction of open and closed services that help you maintain the state logic of your service

6. String processing [Strings]

Very useful string tools, including segmentation, connection, padding, and other operations

7. Native type [primitives]

The extended JDK does not provide native types such as int, char, and includes some types of unsigned forms

8. Interval [Ranges]

Comparable types of interval APIs, including continuous and discrete types

9. I/O

Simplifies the operation of I/O, especially I/O streams and files, for Java5 and version 6

10. Hash [Hash]

Provides a more complex hash implementation than Object.hashcode () and provides the implementation of the Bloom filter

11. Event bus [Eventbus]

Component communication in publish-subscribe mode, but components do not need to be explicitly registered in other components

12. Mathematical operations [Math]

Optimized, fully tested mathematical tool class

13. Reflection [Reflection]

Guava Java Reflection Mechanism tool class

Specific resources Download Address: http://download.csdn.net/detail/luo201227/7207227

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.