Java local cache framework series-Caffeine-1. Introduction and use

Caffeine is a high-performance local cache framework based on Java 8. Its structure is basically the same as that of Guava Cache, and its api is also the same. It is basically easy to replace. Caffeine is actually based on Guava Cache, using some new features of Java 8 to improve the performance efficiency in some scenarios. In this chapter, we ...

Added by paparanch on Fri, 24 Apr 2020 12:56:46 +0300

I heard that you still can't figure out = = and equals in java?

I believe that a lot of readers know about = = and equals, and they know about = = and equals. In fact, it may be because there are too many blog articles and so on. After a period of baptism, they get lost. This article is clear again. Of course, if I think this article is too verbose, of course, I have taken it into consideration, because I d ...

Added by sameerni on Wed, 08 Apr 2020 15:51:42 +0300

Interpretation of HashMap source code (1)

1. Preface                               . Let's start reading the source code of HashMap. 2. Inheritance and implementation of HashMap classes public class HashMap ...

Added by Andy-H on Sun, 05 Apr 2020 21:45:04 +0300

[SG] switch between different versions of Android source code compiling jdk

1. Why do I need to switch? Android 4.4 source compilation requires Sun (acquired by Oracle) SunJdk1.6. From 5.0, in order to avoid property rights problems, Google turned to JDK open source version OpenJDK1.7. Generally, our compilation server is the same computer, so we need to install multiple versions of JDK and switch dur ...

Added by penguin_powered on Mon, 23 Mar 2020 17:56:26 +0200

Abstract Factory Mode for Creative Mode

1 Overview Last article Speaking of the factory method pattern, it provides a solution for creating class instances without specifying a specific implementation.So why do we need the abstract factory model? 2 Abstract Factory Mode The abstract factory model is essentially also a factory defined as an entry for class creation, which has the adva ...

Added by bhogg on Sat, 21 Mar 2020 07:53:49 +0200

Asynchronous Programming RxJava - Introduction

PrefaceWrite an article a while ago Some understanding of the equation , whether it's a collaboration or callback, it essentially provides an asynchronous, non-blocking programming mode; it also introduces java support for asynchronous, non-blocking programming mode, mainly referring to Future and CompletableFuture; after that, some classmates ...

Added by linux1880 on Fri, 20 Mar 2020 04:42:10 +0200

Using Java to read / write Windows registry

How to use Java to read / write to the Windows registry? #1 building I added David's original release of Pure java code to allow access to 32-bit parts of the registry from a 64 bit JVM and vice versa. I don't think there is any other answer to this problem. Here is: /** * Pure Java Windows Registry access. * Modified by petrucio@s ...

Added by jbardin on Thu, 19 Mar 2020 10:55:39 +0200

Architect's internal approach, well-known but not known iterator pattern in detail

Iterator Pattern, also known as Cursor Pattern, provides a way to sequentially access a collection or container object element without exposing its internal representation.The iterator pattern provides a traversal behavior for different containers, regardless of the composition of the elements within them.The essence of the iterator pattern is ...

Added by warmwind on Thu, 19 Mar 2020 09:20:43 +0200

GC thinking caused by a thread pool bug!

Author: empty https://segmentfault.com/a/1190000021109130 Problem description A few days ago, I was helping my colleagues to troubleshoot the occasional thread pool errors on the production line. The logic was very simple. The thread pool performed an asynchronous task with results. However, there have been occasional errors recently: java.ut ...

Added by poscribes on Tue, 17 Mar 2020 11:18:15 +0200

Summary of spring learning AOP

1, AOP introduction 1. Basic concept of AOP     AOP is the abbreviation of Aspect Oriented Programming, which means: it is a technology to realize the unified maintenance of program functions through precompile mode and dynamic agent during operation. AOP is the continuation of OOP (obj ...

Added by sklein99 on Tue, 17 Mar 2020 07:30:51 +0200