https://msdn.microsoft.com/en-us/library/sf985hc5.aspx The abstract modifier indicates that the thing being modified has a missing or incomplete implementation. The abstract modifier can be used with classes, methods, properties, indexers, and events…
对于Reference类大家可能会比较陌生,平时用的也比较少,对他的印象可能仅停在面试的时候查看引用相关的知识点:但在仔细查看源码后发现Reference还是非常实用的,平时我们使用的类都是强引用的,它的回收完全依赖于 GC:但是对于有些类我们想要自己控制的时候就比较麻烦,比如我想在内存还足够的时候就保留,不够的时候就回收,这时使用Reference就能够十分灵活的控制类的存亡了. 一.类定义 /** * Abstract base class for reference objects. Th…
public class WeakReference<T> extends Reference<T> { public WeakReference(T referent) { super(referent); } public WeakReference(T referent, ReferenceQueue<? super T> q) { super(referent, q); } } public abstract class Reference<T> {…
Containers in Depth Full container taxonomy You can usually ignore any class that begins with "Abstract." Filling containers This fill( ) just duplicates a single object reference throughout the container. In addition, it only works for List obj…
1. Primitive Types Any data types the compiler directly supports are called primitive types. Primitive types map directly to types existing in the Framework Class Library (FCL). For the types that are compliant with the Common La…
1. Introduction The Springfox suite of java libraries are all about automating the generation of machine and human readable specifications for JSON APIs written using the spring family of projects. Springfox works by examining an application, once, a…
1. javaee(Web) and Android 2. how to use eclipse and break point debuging in eclipse, as to java web, use myeclipse: shortcut keys: ,do not use Chinese or space in workspace path, configure JRE default, as jdk already has jre, we just configure with…
1.Programming Language Primitive Types primitive types:Any data types the compiler directly supports. Primitive types map directly to types existing in the Framework Class Library (FCL). use the FCL type names and completely avoid the primitive type…
Questions that are independent of programming language. These questions are typically more abstract than other categories. Free Language Agnostic Programming Books 97 Things Every Programmer Should Know Algorithms and Data-Structures (PDF) Algorithm…
I ran into a question on stackoverflow the other day that sort of shocked me. It was a piece of code, with the author asking why it wasn't a factory pattern. The thing that shocked me was that the pattern that everyone was agreeing was a factory meth…
Part 1 http://techmytalk.com/2014/01/24/java-interview-reference-guide-part-1/ Posted on January 24, 2014 by Nitin Kumar JAVA Object Oriented Concepts Java in based on Object Oriented concepts, which permits higher level of abstraction to solve any p…
===================== Model field reference ===================== .. module:: django.db.models.fields :synopsis: Built-in field types. .. currentmodule:: django.db.models This document contains all the API references of :class:Field including the fie…
1. Introduction 1.1. About 1.2. Sphinx features 1.3. Where to get Sphinx 1.4. License 1.5. Credits 1.6. History 2. Installation 2.1. Supported systems 2.2. Compiling Sphinx from source 2.2.1. Required tools 2.2.2. Compiling on Linux 2.2.3. Known comp…
An interface is a reference type, in spite of the fact that it has no code at all. Thus, wecannot instantiate an interface. We can use it as a construct for the creation of new types.An interface defines a contract that is left to the class to implem…
most from reference 接口 Kotlin中的接口非常类似于Java8,它们可以包含抽象方法的声明以及方法实现.与抽象类不同的是接口不能存储状态.它们可以具有属性,但这些需要是抽象的或提供访问器. 使用interface关键字定义接口 interface MyInterface { fun bar() fun foo() { // optional body } } 实现接口 类或对象可以实现一个或多个接口 class Child : MyInterface { override…
most from reference 类 Kotlin的类的声明使用关键字class class Invoice { } 类声明由类名.类头(指定其类型参数,构造函数等)和类体组成,由大括号括起来.如果一个类没有方法体,可以省略花括号. class Empty 构造函数 Kotlin中类可以有一个主要的构造函数和一个或多个辅助构造函数.主构造函数是类头的一部分:它在类名后面(可选的类型参数) class Person constructor(firstName: String) { } 如果主…