পৃষ্ঠাসমূহ

Search Your Article

CS

Pageviews

Showing posts with label Guava Tutorial. Show all posts
Showing posts with label Guava Tutorial. Show all posts

Monday, January 16, 2017

Guava - Overview

Guava is an open source, Java-based library and contains many core libraries of Google, which are being used in many of their projects. It facilitates the best coding practices and helps reduce coding errors. It provides utility methods for collections, caching, primitives support, concurrency, common annotations, string processing, I/O, and validations.

Guava - Environment Setup

Try it Option Online

We have setup a Java Programming environment online, so that you can compile and execute all the available examples online at the same time when you are doing your theory work. This gives you confidence in what you are reading and to check the result with different options. Feel free to modify any example and execute it online.

Guava - Optional Class

Optional is an immutable object used to contain a not-null object. Optional object is used to represent null with absent value. This class has various utility methods to facilitate the code to handle values as available or not available instead of checking null values.

Guava - Preconditions Class

Preconditions provide static methods to check that a method or a constructor is invoked with proper parameter or not. It checks the pre-conditions. Its methods throw IllegalArgumentException on failure.

Guava - Ordering Class

Ordering can be seen as an enriched comparator with enhanced chaining functionality, multiple utility methods, multi-type sorting capability, etc.

Guava - Objects Class

Objects class provides helper functions applicable to all objects such as equals, hashCode, etc.
Class Declaration

Guava - Range Class

Range represents an interval or a sequence. It is used to get a set of numbers/ strings lying in a particular range.

Guava - Throwables Class

Throwables class provides utility methods related to Throwable interface.

Class Declaration

Guava - Collections Utilities

Guava introduces many advanced collections based on developers' experience in application development works. Given below is a list of useful collections:

Guava - Caching Utilities

Guava provides a very powerful memory based caching mechanism by an interface LoadingCache<K,V>. Values are automatically loaded in the cache and it provides many utility methods useful for caching needs.

Guava - String Utilities

Guava introduces many advanced string utilities based on developers' experience in application development works. Following is the list of useful string based utilities:

Guava - Primitive Utilities

As primitive types of Java cannot be used to pass in generics or in collections as input, Guava provided a lot of Wrapper Utilities classes to handle primitive types as Objects. Following is the list of useful primitive processing utilities:

Guava - Math Utilities

Guava provides Mathematics related Utilities classes to handle int, long and BigInteger. Following is the list of useful utilities:

Guava - Useful Resources

The following resources contain additional information on Guava. Please use them to get more in-depth knowledge on this topic.

Discuss Guava

Guava is an open source, Java based library developed by Google. It facilitates best coding practices and helps reduce coding errors. It provides utility methods for collections, caching, primitives support, concurrency, common annotations, string processing, I/O, and validations.
This tutorial adopts a simple and intuitive way to describe the basic-to-advanced concepts of Guava and how to use its APIs.