Deeply and Simply Explain the Exclusive Lock Mode of AQS

Every Java engineer should know more or less about AQS, and I have studied it over and over again for a long time, forgetting to look at it again and again. Every time I have a different experience. This time, taking advantage of blogging, I intend to re-take out the source code of the system and summarize it into an article for future review. ...

Posted by nfr on Wed, 22 May 2019 18:57:48 -0700

State Patterns in Design Patterns Series

Brief Book Address: http://www.jianshu.com/p/67ad1915fd62 Nugget address: https://juejin.im/post/59c4c2c6f265da066875f9f8 "Welcome to watch the vulgar"Little Y Hall"on time. Hello, I'm Little Y, a programmed ape with sexy hair and talent. Many small partners should have the same feeling: the hero's heroic single bombing of the ...

Posted by adamlacombe on Wed, 22 May 2019 16:49:02 -0700

Luogu 1084 [Increased 2012] Epidemic Control (Dichotomy + Greed + Double)

This is a really awesome question... One day... Despite the fact that I got a dichotomy in D2T2, D2T3 is also a dichotomy!! Surprise! No surprise! What? Did you say I was greedy and doubled? Is that more surprising? What a surprise! Obviously, the longer the minimum transfer time is, the more likely it is to meet the conditions. So we dichot ...

Posted by respecttheplayer on Wed, 22 May 2019 13:02:42 -0700

RestTemplate Configuration and Use of SpringBoot 2.X Kotlin Series

Since the rise of RESTFul API, Spring has provided developers with a client to access Rest. RestTemplate can not only call http interface conveniently, but also call micro-services under the same registry. It also has load balancing and fusing mechanisms. Of course, I've heard about OKhttp, HTTPClient and other network frameworks, but we're fo ...

Posted by teamfox20 on Sun, 19 May 2019 18:16:16 -0700

Scala pattern matching

12.1 match  12.1.1 Basic Introduction Schema matching in Scala is similar to switch syntax in Java, but more powerful In pattern matching grammar, match keyword declaration is used, and case keyword declaration is used for each branch. When matching is needed, the first case branch will start. If matching is successful, the corresponding log ...

Posted by tbone05420 on Sun, 19 May 2019 13:11:13 -0700

Introduction to collections in Java

1. Basic Introduction 1. Structure Diagram 2. Add Objects Employee object added to the collection: Clerk //Create an employee class public class Clerk { private String name;//Full name private int age;//Age private float sal;//wages public Clerk(String name,int age,float sal) { this.name=nam ...

Posted by shiflett on Sun, 19 May 2019 07:07:19 -0700

GIS Map Learning Notes VI Scale Maps by Layer

The Method of Setting Map Scaling Proportion in ArcGis mMapView.setViewpointScaleAsync(scale); demand Click on the zoom button (+"-) on the map and let the map zoom according to the map layer. For example, a map contains the following layers. Each layer has a zoom scale. When we click on the zoom button (+"-), we need to set t ...

Posted by maniac1aw on Sat, 18 May 2019 12:24:13 -0700

pecan's routing mechanism

Routing mechanism based on object distribution pecan maps an HTTP request to a controller using object distribution. The object distribution mechanism first divides the request path into a series of strings, which are used to find the next level controller from the root controller in turn.You can think of the set of control ...

Posted by mcbeckel on Sat, 18 May 2019 11:45:44 -0700

Introduction to the ArcGIS API and Building Basic Web Maps

1. Introduction ArcGIS API for JavaScript (JavaScript API) is a set of scripts implemented by ESRI based on JavaScript technology to call the ArcGIS Server REST API interface.Map resources provided by ArcGIS Server can be embedded into Web applications through the ArcGIS API for JavaScript.The ArcGIS API for JavaScript is based on the Dojo fra ...

Posted by horseygirl on Sat, 18 May 2019 01:27:15 -0700

Expandable List Adapter Feels Adapted

n. The items come from the ExpandableListAdapter associated with this view. A simple translation is:A view used to display two-level lists in vertical scrolling is different from ListView in that it can display two-level lists, and grouping can expand display sub-options separately. The data for these options is associated th ...

Posted by KashKurcura on Fri, 17 May 2019 21:35:13 -0700