java design pattern abstract factory pattern

1. Abstract Factory Pattern Abstract Factory Pattern is to create other factories around one super factory. This super factory is also called the factory of other factories. This type of design pattern is a creation pattern, which provides the best way to create objects. 2. Code implementation Scene: now we have to create t ...

Added by DeathStar on Sat, 04 Apr 2020 20:23:50 +0300

ViewPager navigation control -- simpleviewpager indicator

The reason for writing this widget is that the designer gave a new navigation style of ViewPager to an app that is responsible for maintenance recently. However, he found that several commonly used navigation controls could not achieve 100% of the effect given by the designer, so he simply did his own thing. Control only has a ...

Added by gruzaw on Fri, 03 Apr 2020 09:54:14 +0300

Simple message at the top

  Let's see the renderings first A message list, and then click the item to refresh the time, and then click the top to refresh the time. The top rule is based on two fields If it is in the top state, top is 1, and then time will be refreshed for each operation. Time is the saved time stamp. First, look at the entity class package com.fragme ...

Added by mrbippy on Thu, 02 Apr 2020 20:52:09 +0300

Step by step Android general framework (3)

Custom annotation Because here to use reflection knowledge, so not familiar with the reflection of the need to review next Oh. Create a new package injection, and define the annotation class Id under the package @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface Id { /** ...

Added by aquilina on Thu, 02 Apr 2020 17:05:47 +0300

Summary of usage of dva.js

Dva.js is a front-end framework based on react, Redux and webback developed by Alibaba front-end team. It can realize one click deployment of react Redux webback environment, which can save front-end engineers a lot of time in setting up the environment. And the optimized Redux is more convenient to use than the native redux. Let's talk about t ...

Added by PHP_apprentice on Thu, 02 Apr 2020 14:23:27 +0300

Using AsyncHttp to access the network, get data, explain and examples

What is AsyncHttp It is a plug-in on github, which is used to obtain network data. Its function is similar to that of HttpUrlConnection This article is to translate and supplement the information in github documents. github document link Make a Static Http Client: create a static method (which can realize c ...

Added by Pha on Thu, 02 Apr 2020 01:51:21 +0300

Vuex tutorial case: counter and list presentation

In this case, github: https://github.com/axel10/Vuex_demo-Counter-and-list In this tutorial, two examples, counter and list, are used to explain the simple use of Vuex. The process from installation to starting the initial page is skipped directly. Note that routing is required during installation. First, create a new store directory and corres ...

Added by brooky on Tue, 31 Mar 2020 23:49:42 +0300

PHP FFI Details - A new way to extend PHP

This article address: https://www.laruence.com/2020/03/11/5475.html Please indicate the source for reprinting With PHP 7.4 comes an extension that I think is very useful: PHP FFI (Foreign Function interface), which refers to a description in a PHP FFI RFC: For PHP, FFI provides a way to write PHP extensions and bindings to C li ...

Added by $SuperString on Mon, 30 Mar 2020 06:00:01 +0300

go micro practice 01: fast build service

background Go micro provides us with a very convenient way to quickly build microservices, and we do not need to know about micro in advance. Here is a simple example to quickly implement a service. Create a Proto file Because we want to do microservices, there must be a server and a client. The format of content transmission between these two ...

Added by BMorganVA on Fri, 27 Mar 2020 12:21:40 +0200

Recommendation for large table breakdown using gravity

gravity is a heterogeneous/isomorphic data replication channel software for Mobay bicycle ticketing, providing support for mainstream software and native k8s cloud.Better see its development. Project address: https://github.com/moiot/gravity Official documents: https://github.com/moiot/gravity/blob/master/docs/2.0/01-quick-start.md The comp ...

Added by Dev on Thu, 26 Mar 2020 19:51:25 +0200