Topic 4 of new features of Java 8: lambda method reference and constructor reference
landscape
Java 8's lambda introduces three method references, constructor references, and array references to reduce code development. It should be noted that if you need to use this feature, the method return value type, parameter number and type must be consistent with the functional interface.
example
Object instance meth ...
Posted by slobodnium on Sat, 05 Mar 2022 17:12:32 +0100
Java8 new features series Lambda
Reprinted from: Java8 new features series - Lambda - wechat blog
Lambda Expressions in Java 8
Lambda expressions are the most popular feature of Java 8. They introduce the concept of functional programming into Java, a completely object-oriented imperative programming language. The working principle of functional programming language is ...
Posted by jazappi on Wed, 02 Mar 2022 15:14:40 +0100
Sling ThreadLocal and talk about why FastThreadLocal can be so fast?
1 Introduction background and principle of fastthreadlocal
Since jdk already has a ThreadLocal, why should netty create a FastThreadLocal? Where is FastThreadLocal?
This needs to start with jdk ThreadLocal itself. As shown below:
In java threads, each thread has a ThreadLocalMap instance variable (if ThreadLocal is not used, this Map will ...
Posted by Nacota on Tue, 11 Jan 2022 02:36:18 +0100
New Java 8 feature: Lambda helloworld
★ this is Xiao Leng's blog ‡ see the column for high-quality technical articles The official account of the individual, sharing some technical articles, and the pit encountered. Current series: Java 8 new features series Source code git warehouse Code Git warehouse address
New Java 8 features
Java 8 (also known as jdk 8) is a major v ...
Posted by jola on Fri, 10 Dec 2021 17:56:18 +0100
❤️ Summary of JSR-310 (java8 new date and time API) of 150000 word JDK source code analysis ❤️ (JAVA small Phyllostachys pubescens, recommended Collection)
❤️ About the author: Hello, I'm Xiao xuzhu. High quality creators in Java 🏆, CSDN blog expert 🏆 ❤️ Technical work should be rewarded ❤️ give the thumbs-up 👍 Collection ⭐ Look again and form a habit
What is the JSR specification
Explanation from Baidu Encyclopedia:
JSR is the abbreviation of Java Specification Requests, which means ...
Posted by hyeteck on Sun, 26 Sep 2021 00:12:57 +0200
Java multithreaded batch split List import database
1, Foreword
Two days ago, we did an import function. The import started very slowly. It took more than one minute to import 2w pieces of data. Later, we optimized it bit by bit, from directly linking the list into Mysql, assigning the list into Mysql, and multi threading the list into Mysql. Time is getting less and less. It was very cool, and ...
Posted by marshdabeachy on Wed, 08 Sep 2021 04:27:50 +0200