Java Weekly, Issue 183
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> What’s new in JPA 2.2 – Java 8 Date and Time Types [vladmihalcea.com] JPA 2.2 finally has the support for...
View ArticleIntroduction to Kotlin Coroutines
1. Overview In this article, we’ll be looking at coroutines from the Kotlin language. Simply put, coroutines allow us to create asynchronous programs in a very fluent way, and they’re based on the...
View ArticleIntroduction to Apache Commons Text
1. Overview Simply put, the Apache Commons Text library contains a number of useful utility methods for working with Strings, beyond what the core Java offers. In this quick introduction, we’ll see...
View ArticleBigDecimal and BigInteger in Java
1. Overview This is an introductory article on the BigDecimal & the BigInteger data types in the Java programming language. In this write-up, we’ll show in what scenarios we can use these data...
View ArticleApache Commons BeanUtils
1. Overview Apache Commons BeansUtils contains all tools necessary for working with Java beans. Simply put, a bean is a simple Java classes containing fields, getters/setters, and a no-argument...
View ArticleSpring 5 WebClient
1. Overview In this article, we’re going to show the WebClient – a reactive web client that’s being introduced in Spring 5. We’re going to have a look at the WebTestClient as well – which is a...
View ArticleOAuth2 Remember Me with Refresh Token
1. Overview In this article, we will add a “Remember Me” functionality to an OAuth 2 secured application, by leveraging the OAuth 2 Refresh Token. This article is a continuation of our series on using...
View ArticleSemaphores in Java
1. Overview In this quick tutorial, we’ll explore the basics of semaphores and mutexes in Java. 2. Semaphore We’ll start with java.util.concurrent.Semaphore. We can use semaphores to limit the number...
View ArticleType Erasure in Java
1. Overview In this quick article, we’ll discuss the basics of an important mechanism in Java’s generics known as type erasure. 2. What is Type Erasure? Type erasure can be explained as the process of...
View ArticleJava Weekly, Issue 184
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Are Java 8 Streams Truly Lazy? Not Completely! [blog.jooq.org] It turns out that the Java 8 Streams API is not...
View ArticleConsumer Driven Contracts with Pact
1. Overview In this quick article, we’ll be looking at the concept of Consumer-Driven Contracts. We will be testing integration with some external REST service through a contract using the Pact...
View ArticleData Classes in Kotlin
1. Overview The Kotlin language introduces the concept of Data Classes, which represent simple classes used as data containers and do not encapsulate any additional logic. Simply put, Kotlin’s...
View ArticleConverting a List to Map in Kotlin
1. Introduction In this quick tutorial, we’ll see how we can convert a List to a Map in Kotlin. 2. Implementation Kotlin offers the convenient toMap method which, given a list of complex objects, will...
View ArticleWhat is the serialVersionUID?
1. Overview Simply put, the serialVersionUID is a unique identifier for Serializable classes. This is used during the deserialization of an object, to ensure that a loaded class is compatible with the...
View ArticleQuick Guide to the Guava RateLimiter
1. Overview In this article, we’ll be looking at the RateLimiter class from the Guava library. The RateLimiter class is a construct that allows us to regulate the rate at which some processing...
View ArticleApache Commons Collections BidiMap
1. Overview In this short article, we’ll be looking at an interesting data structure in the Apache Commons Collections library – the BidiMap. The BidiMap adds a possibility of looking up the key using...
View ArticleZipping Collections in Java
1. Introduction In this tutorial, we’ll illustrate how to zip two collections into one logical collection. The “zip” operation is slightly different from the standard “concat” or “merge”. While the...
View ArticleBloom Filter in Java using Guava
1. Overview In this article, we’ll be looking at the Bloom filter construct from the Guava library. A Bloom filter is a memory-efficient, probabilistic data structure that we can use to answer the...
View ArticleTemporalAdjuster in Java
1. Overview In this tutorial, we’ll have a quick look at the TemporalAdjuster and use it in a few practical scenarios. Java 8 introduced a new library for working with dates and times – java.time and...
View ArticleA Guide to Apache Commons DbUtils
1. Overview Apache Commons DbUtils is a small library that makes working with JDBC a lot easier. In this article, we’ll implement examples to showcase its features and capabilities. 2. Setup 2.1....
View Article