Guide to the Guava BiMap
1. Overview In this tutorial, we’ll show how to use the Google Guava’s BiMap interface and its multiple implementations. A BiMap (or “bidirectional map”) is a special kind of a map which maintains an...
View ArticleJava Web Weekly, Issue 160
Lots of solid reactive focused talks this week. Here we go… 1. Spring and Java >> Java 10 Could Bring Upgraded Lambdas [infoq.com] A short report about a cool possible enhancement of Lambda...
View ArticleIterable to Stream in Java
1. Overview In this short tutorial, let’s convert a Java Iterable object into a Stream and perform some standard operations on it. 2. Converting Iterable to Stream The Iterable interface is designed...
View ArticleConcurrency with LMAX Disruptor – An Introduction
1. Overview This article introduces the LMAX Disruptor and talks about how it helps to achieve software concurrency with low latency. We will also see a basic usage of the Disruptor library. 2. What...
View ArticleA Guide to LinkedHashMap in Java
1. Overview In this article, we are going to explore the internal implementation of LinkedHashMap class. LinkedHashMap is a common implementation of Map interface. This particular implementation is a...
View ArticlefindFirst() and findAny() in the Java 8 Stream API
1. Introduction The Java 8 Stream API introduced two methods that are often being misunderstood: findAny() and findFirst(). In this quick tutorial, we will be looking at the difference between these...
View ArticleSpring Cloud Sleuth in a Monolith Application
1. Overview In this article, we’re introducing Spring Cloud Sleuth – a powerful tool for enhancing logs in any application, but especially in a system built up of multiple services. And for this...
View ArticleJSON Processing in Java EE 7
1. Overview This article will show you how to process JSON using only core Java EE, without the use of third-party dependencies like Jersey or Jackson. Pretty much everything we’ll be using is...
View ArticleGuide to Guava RangeSet
1. Overview In this tutorial, we’ll show how to use the Google Guava’s RangeSet interface and its implementations. A RangeSet is a set comprising of zero or more non-empty, disconnected ranges. When...
View ArticleSimple Inheritance with Jackson
1. Overview In this tutorial, we’re going to take a look at inheritance and in particular how to handle JSON serialization and deserialization of Java classes that extend a superclass. In order to get...
View ArticleGuide to Guava RangeMap
1. Overview In this tutorial, we’ll show how to use the Google Guava’s RangeMap interface and its implementations. A RangeMap is a special kind of mapping from disjoint non-empty ranges to non-null...
View ArticleA Guide to TreeMap in Java
1. Overview In this article, we are going to explore TreeMap implementation of Map interface from Java Collections Framework(JCF). TreeMap is a map implementation that keeps its entries sorted...
View ArticleIntro to Spring Remoting with HTTP Invokers
1. Overview In some cases, we need to decompose a system into several processes, each taking responsibility for a different aspect of our application. In these scenarios is not uncommon that one of...
View ArticleGuide to EJB Set-up
1. Overview In this article, we’re going to discuss how to get started with Enterprise JavaBean (EJB) development. Enterprise JavaBeans are used for developing scalable, distributed, server-side...
View ArticleJava Web Weekly, Issue 161
1. Spring and Java >> Bean Validation 2.0 Progress Report [beanvalidation.org] The new features of the Bean Validation 2.0 definitely look promising. >> Swift for Beans – var, let and Type...
View ArticleGuide to CountDownLatch in Java
1. Introduction In this article, we’ll give a guide to the CountDownLatch class and demonstrate how it can be used in a few practical examples. Essentially, by using a CountDownLatch we can cause a...
View ArticleIntroduction to the Kotlin Language
1. Overview In this tutorial, we’re going to take a look at Kotlin, a new language in the JVM world, and some of its basic features, including classes, inheritance, conditional statements, and looping...
View ArticleNew Stream Collectors in Java 9
1. Overview Collectors were added in Java 8 which helped accumulate input elements into mutable containers such as Map, List, and Set. In this article, we’re going to explore two new collectors added...
View ArticleSpring Data MongoDB: Projections and Aggregations
1. Overview Spring Data MongoDB provides simple high-level abstractions to MongoDB native query language. In this article, we will explore the support for Projections and Aggregation framework. If...
View ArticleMaxUploadSizeExceededException in Spring
1. Overview In the Spring framework, a MaxUploadSizeExceededException is thrown when an application attempts to upload a file whose size exceeds a certain threshold as specified in the configuration....
View Article