Photo by Marco Secchi on Unsplash

Introduction

In this post, we will cover advanced stream pipeline concepts in Java 8. We will analyze chaining Optionals, predefined collectors, and learn how to use groupingBy, partitioningBy, and mapping methods. You can find the source code on GitHub.

Chaining Optionals

Chaining optionals help eliminate the nested if-statements for Optional variables. The function…

Photo by Chris Ried on Unsplash

Giris

Bu yazida son yillarda yurtdisinda girdigim yazilim mulakatlarin bir ozetini yapacagim. Bunlarin buyuk bir kismi gunluk hayatta karsilasmadigimiz tipte olan ama hayatimizin da bir gercegi olan kodlama problemleridir. Ayni hatalari sizin de yapmamaniz icin ogrendigim dersleri de paylasacagim.

Siz de deneyimlerinizi yorumlara yazabilir, is arayan tanidiklarinizla yaziyi paylasabilirsiniz. Bazen yurtdisi…

Photo by Marco Secchi on Unsplash

Introduction

In this post, we will cover creating primitive streams, using Optional types with primitives, and summarizing statistics in a single pass.

Primitive Streams

There are three types of primitive streams: IntStream (int, short, byte, and char), LongStream (long), and DoubleStream (double and float).

Creating primitive streams is the same as a regular…

Photo by Marco Secchi on Unsplash

Introduction

Functional interfaces are the basics of functional programming in Java 8. If you master the six basic interfaces, you can derive the rest and understand the streams. In this section, we will cover the common functional interfaces in java.util.function package: Supplier, Consumer, Predicate, Function, UnaryOperator, and BinaryOperator.

Class Hierarchy

The diagram shows…

Suleyman Yildirim

Software Engineer, Oracle Certified Java Programmer, http://suleymanyildirim.org/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store