HashMap1.8 source code Four core points initialization PUT expansion GET Initialization Node structure transient Node[] table; An empty Node array when initialized static class Node<K,V> implements Map.Entry<K,V> {<!– –> final int hash; final K key; V value; Node<K,V> next; Node(int hash, K key, V value, Node<K,V> next) {<!– –> this.hash = hash; this.key = key; […]
Tag: minute
Android time tool DateUtils transfers time to timestamp to obtain separate year, month, day, hour, minute, second and milliseconds
Transfer time to timestamp to obtain individual year, month, day, hour, minute, second, and milliseconds import android.annotation.SuppressLint; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; /** * @author zd * @create 2022-06-30 9:02 * Source: https://blog.51cto.com/mozhimen/5413223 */ public class DateUtils {<!– –> public final static String format_yyyyMMddhhmmss = “yyyy-MM-dd HH:mm:ss”; public […]
Ubuntu expands the disk and deletes the swap partition by mistake. Every time I boot up, a start job is running for dev-disk-by appears. Wait for 1 minute and 30 seconds, and create a new swap partition to solve the problem
The function of the swap partition is that when the memory is not enough, the operating system will put some unused data into the swap partition, which occupies the space of the disk. Therefore, the disadvantage of the swap partition is also obvious, that is, frequent reads and writes to the disk will significantly reduce […]
The mobile van-datetime-picker component does not support the selection of seconds, and the self-written component supports the selection of “year, month, day, hour, minute, and second”
Table of Contents need the code Package component TimePicker Component usage Show results Package component TimePicker code optimization optimization requirements optimized code Optimized demo Requirements When using the van-datetime-picker component to write time selection, it does not support the selection of “seconds” It is required to be able to select accurate to the second Code […]
The DatetimePicker in uView implements “year, month, day, hour, minute, second”
Rendering image: 1. Find the uview-ui–components–u-datetime-picker file in the dependency package Note: In the code component, the default value of mode is ‘datetime’, and the initial type is: year, month, day, hour, minute, second 1.1. Add dayjs.js file !(function (t, e) { typeof exports === ‘object’ & amp; & amp; typeof module !== ‘undefined’ ? […]
The vant component is changed to the hour, minute and second component of the uview-plus component
The vant components were used in the project, but uniapp and vant are not compatible. In addition to a few common components that can be used, if you want to use pop-up windows, vant can’t complete it. Fortunately, uview-plus is officially supported by uniapp. Vue3, just replace the project. The components packaged with vant before […]
vant component encapsulation year, month, day, hour, minute, second
The project requires the use of time components, which must be accurate to the hour, minute, and second, but vant cannot be accurate to the hour, minute, and second. After searching a lot of information, I finally made a component that meets the requirements according to the gourd. Project background j: uniapp + vue3 + […]
Java latitude and longitude decimals and degrees minutes seconds mutual conversion tool class
In the work, I encountered the need to convert the decimals of latitude and longitude to degrees, minutes and seconds, similar to the following: 1. Writing tools Request parameters package com.sinosoft.springbootplus.lft.business.touristres.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.experimental.Accessors; import javax.validation.constraints.NotNull; import java.math.BigDecimal; /** * <pre> * Longitude and latitude conversion entity * * * […]
Drop DB startup time from 45 to 3 minutes in dockerized Oracle 19.3.0
Table of Contents Drop DB startup time from 45 to 3 minutes in dockerized Oracle 19.3.0 Building and running oracle/docker-image 19.3.0 How to configure the database and avoid waiting for a startup? Very convenient container configuration Why we removed VOLUME from Dockerfile? Attention! Do not Overdose! Drop DB startup time from 45 to 3 minutes […]
Getting Started with Less and Sass in 10 Minutes
Less and Sass Chapter 1 Introduction to Less and Sass Both Less and Sass are languages for dynamic style sheets, that is, css frameworks, which make the work of writing CSS very simple through concise and clear syntax definitions. Chapter 2 Less Essentially, LESS includes a set of custom grammars and a parser. Users define […]