java annotations are easy to use

java annotations are easy to use Annotations have been used throughout the development process, and today I finally want to look at the implementation of annotations.Drive directly // Custom Notes // Annotation has been implemented here // Note that comments are only valid in the form of reflection calls @Retention(va ...

Posted by gotit on Mon, 20 Jul 2020 16:23:01 +0200

Kids learn Java (6): encapsulation

Object oriented has three characteristics: Encapsulation, Inheritance and Polymorphism. This section covers encapsulation. Procedure 1 class Woman { private String name; private int age; private Man husband; public void setName(String name) { this.name = name; } public String getName() { return ...

Posted by Japher on Sun, 19 Jul 2020 17:48:11 +0200

springboot Actual Warfare Registered filter s and listener s

Application Scenarios There are special processes in your project that require filters and listeners, such as the spring Framework Character Filter CahracterEncoding Filter. code implementation MyFilter.java @WebFilter(urlPatterns = "/*",description = "custom filter") public class MyFilter implements Filter { ...

Posted by PeeJay on Thu, 16 Jul 2020 17:00:45 +0200

kotlin uses Parcelize annotations to simplify Parcelable writing

kotlin uses Parcelize annotations to simplify Parcelable writing Parcelize Note kotlin added support for parcelable at version 1.1.4 The Android extension now includes an automated generator that implements Parcelable.The generator automatically creates the writeToParcel ()/ createFromParcel () method by declaring the serialized propertie ...

Posted by phpHappy on Wed, 15 Jul 2020 16:21:33 +0200

kotlin uses Parcelize annotations to simplify Parcelable writing

kotlin uses Parcelize annotations to simplify Parcelable writing Parcelize Note kotlin added support for parcelable at version 1.1.4 The Android extension now includes an automated generator that implements Parcelable.The generator automatically creates the writeToParcel ()/ createFromParcel () method by declaring the serialized propertie ...

Posted by dennismcdougall on Wed, 15 Jul 2020 16:22:56 +0200

The Prototype Model of Dahua Design Mode

1. Definition Use prototype instances to develop the types of objects created, and copy them to create new objects that can be used to create duplicate objects while maintaining performance.Implement clone operation, inherit Cloneable in JAVA, override clone(). Instead of reinitializing the object, it dynamically obtains the state of the ...

Posted by trp on Tue, 14 Jul 2020 18:17:00 +0200

Sorting Algorithms in R Language

Prior to writing this blog, I wrote a post called Eight Sorts Programmers Have No Reason Not to Know In that blog, there are detailed descriptions of the eight sorting algorithms. The code implementation is mainly implemented by Java code. Recently, there are many sorting algorithms in R language. So I want to reorganize the sorting algorithms ...

Posted by dazzathedrummer on Tue, 14 Jul 2020 18:11:18 +0200

Mybatis (2) Parameters transfer

Mybatis parameter (Parameters) pass 1.. Single parameter Values of basic type, object type, collection type can be accepted.In this case, MyBatis can use this parameter directly without any processing.   <!-- according to id Query a record in a data table and encapsulate it User object --> <select id="selectById" resultType="com.s ...

Posted by aidema on Tue, 14 Jul 2020 17:19:14 +0200

Mybatis (2) Parameters transfer

Mybatis parameter (Parameters) pass 1.. Single parameter Values of basic type, object type, collection type can be accepted.In this case, MyBatis can use this parameter directly without any processing.   <!-- according to id Query a record in a data table and encapsulate it User object --> <select id="selectById" resultType="com.s ...

Posted by Errant_Shadow on Tue, 14 Jul 2020 17:19:34 +0200

About how to set the default number of sms center number center, a huge question mark, solve!

For beginners, android 4.4 doesn't know how the default number for SMS centers is set, but now it's a rule to write a short summary of what you see every day, so let's just tell it! First I found a place to set the SMS center number on the display of the control: Filename: SimSettingPreferenceActivity.java @Override protected voi ...

Posted by bazza84 on Sun, 12 Jul 2020 18:24:47 +0200