): Two communication between components, but does not require that these components explicitly register with each other
Math tool (Math): Optimized, thoroughly tested math tools, not provided by JDK
Reflection (Reflection): Guava provides tools for the reflection capabilities of Java
Hint: Use guava to achieve what your program wants to do
Guava's Philosophy (philosophy): What
not in JDK, as shown in figureInt andChar and other basic types of operations. Including some typesUnsigned variation.
Ranges: Guava's has powerful APIs for processingThe range of the Comparable type, including the continuous and discrete values.
I/O: simplifies I/O operations, especially on I/O streams and files. Supports Java 5 and 6.
Hashing: RatioObject. hashCode () more advanced hash tools, includingBloom filter.
EventBus: Publish-subscribe-style component communication, no need to exp
1, outlineLet's familiarize ourselves with the melon and experience some of its APIs, divided into the following sections:
Introduction
Guava Collection API
Guava Basic Utilities
IO API
Cache API
2, choose a baby for God's horse?
Eva is the ice cream on the Java API Cake (essence)
Efficient and well-designed API.
Designed, implemented, and used by Google's deve
Guava is an extended project of Google's java1.6-based class library collection, including collections, caching, primitives support, concurrency libraries, common Annotati ONS, string processing, I/O, and so on. These high-quality APIs can make your Java code more elegant and concise, making your work easier and more enjoyable. Let's start the elegant Java programming learning journey! Project related information: official homepage: http://code.goo
Original address: Guava Library Learning: Learning Guava Files Series (ii) Previous, Guava Library learning: Learning Guava Files Series (a), we simply learned to use files for file reading and writing, such as common operations, this article we continue to guava files serie
>
Guava is a Google Extension Project Based on java1.6 class library collection, including collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so on. these high-quality APIs can make your Java code more elegant, concise, and easier to work. Next we will start the elegant Java programming learning journey!
Project information:
Http://code.google.com/p/g
Original address: Guava Library Learning: Learning Guava Files Series (i) For program developers, the ability to read and write files is an important skill. But surprisingly, while Java provides a rich and robust I/O library, it is cumbersome to perform some basic file operations. But there have been some changes in Java 7, but those that use Java 6 are less fortunate. Fortunately,
Guava is a Google Extension Project Based on java1.6 class library collection, including collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so on. these high-quality APIs enable your JavaCodeIt is more elegant and concise, making your work easier and more pleasant. Next we will start the elegant Java programming learning journey!
Project information:
Http://code.google.com/p/
Guava database introduction, guava Database1. What is Guava?
1) The Guava library is a common tool library suitable for many Java projects.2) The Guava tool library contains: collection, concurrent Concurrency, Primitive, Reflection, Comparison of Comparison, I/O operations,
Guava Study notes: Guava cacheReprint: Http://outofmemory.cn/java/guava/cache/how-to-use-guava-cacheThere is a cache package in Google Guava, which provides memory caching capabilities. There are many issues to be considered in memory caching, including concurrency issues, c
Original address: Guava Library Learning: Learning Guava Cache (vi) cachestats Previous article,Guava Library Learning: Learning Guava Cache (v) cacheloader , we learned Cacheloader abstract class, mainly from the method, To receive a function or supplier and return a Cacheloader instance, we have learned how to crea
Guava is a Google Extension Project Based on java1.6 class library collection, including collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so on. these high-quality APIs can make your JAVa code more elegant, concise, and easier to work. Next we will start the elegant Java programming learning journey!
Project information:
Http://code.google.com/p/gua
RateLimit-Example code of interface throttling using guava, ratelimit-guava
This article focuses on RateLimit-using guava for interface throttling.
I. Problem Description
One day, Mr. A suddenly found that his Interface request volume suddenly rose to 10 times of the previous one. Not long ago, the interface was almost unavailable and triggered A chain reaction,
Guava study notes: The meaning of immutable sets of guavaImmutable objects have many advantages, including:
When an object is called by an untrusted library, the immutable form is secure;
When an immutable object is called by multiple threads, there is no race condition problem
Immutable collections do not need to consider changes, so you can save time and space. All immutable collections have better memory utilization (analysis and t
Original address: http://www.xx566.com/detail/184.html In the software development process, the sharing of object information and direct collaboration with each other is necessary, the difficulty is to ensure that the communication between the objects is effectively completed, rather than the cost of highly coupled components. When an object has too much detail about the responsibilities of other components, it is considered highly coupled. When an application has a high degree of coupling, main
Original address:Guava Library Learning: Learning Guava Cache Knowledge Summary At this point, we ended our learning of the guava cache caching mechanism, and during the learning process we learned how to simply create the simplest concurrentmap cache through mapmaker, and we also learned about the advanced features of the cache and the powerful Loadingcache We also explored and learned the Cachebuilder, Ca
Guava Learning notes: manipulating strings in guavaReprint: Http://outofmemory.cn/java/guava/base/StringsIn Google Guava, it provides a great convenience for string manipulation, with an established judgment string whether it is an empty string or null, fills a string with a specified character, splits a merged string, determines the string match, and so on.Let's
Guava Study Notes: Object encapsulation operations in guavaReprint: Http://outofmemory.cn/java/guava/base/ObjectsWe often need to compare two objects for equality in development, when we need to consider whether the comparison of two objects is null, and then call the Equals method to compare equality, Google The Com.google.common.base.Objects class of the guava
Recently learned the use of the next guava, here is a simple record of some commonly used and use of the tool class.See the use of the table is really a bright, before the code has written a lot of map This format of code, this reading is very unfriendly, I don't even know what the key in the map is, but it's the context Association, and the presence of the table type completely solves the problem.Table supports row, column, value we think of the map
1, this article translates from the http://eclipsesource.com/blogs/2012/06/06/cleaner-code-with-guava-optionals-and-preconditions/, has said the wrong place , Welcome to treatise.2, when I developed software, towards clean code development is my privilege, for some time, I have used in almost all of my projects Google melon (Google guava), the reason is very simple, gua
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.