代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/394381/8227314
m min.m
%列状数据最小值
%例如
% A=[11 4 0.2;22 3 0.5;0 3 0.4];
% min(A)
%
%MIN Smallest component.
% For vectors, MIN(X) is the smallest element in X. For matrices,
% MIN(X) is a row vector contain
www.eeworm.com/read/394381/8227961
m max.m
%列状数据最大值
%例如
% A=[11 4 0.2;22 3 0.5;0 3 0.4];
% max(A)
%
%MAX Largest component.
% For vectors, MAX(X) is the largest element in X. For matrices,
% MAX(X) is a row vector containin
www.eeworm.com/read/394381/8228052
m diff.m
function X = diff(X,order,dim)
%1.数值差分
% 对向量n维X,diff(X)返回[X(2)-X(1) X(3)-X(2) ... X(n)-X(n-1)]
% 例 x=[1 3 8];diff(x)
%
%2.符号导函数
% diff(s)符号表达式s的导数.
% diff(s,v)符号表达式s关于变量v的导数.
www.eeworm.com/read/366806/9798563
java databaseconnection.java
public class DatabaseConnection {
private static DatabaseConnection singleton;
private DatabaseConnection() {
// do steps to establish connection to database
// ...
}
// only access
www.eeworm.com/read/269231/11104417
java sample10_15.java
package wyf.jc;
class Singleton
{
private static Singleton singleInstance;
public static Singleton getInstance()
{
if(singleInstance==null)
{
singleInstance=new Singleton();
}
www.eeworm.com/read/412503/11195905
txt java常见面试题.txt
第一,谈谈final, finally, finalize的区别。
final?修饰符(关键字)如果一个类被声明为final,意味着它不能再派生出新的子类,不能作为父类被继承。因此一个类不能既被声明为 abstract的,又被声明为final的。将变量或方法声明为final,可以保证它们在使用中不被改变。被声明为final的变量必须在声明时给定初值,而在以后的引用中只能读取,不可修改。被声明为 ...
www.eeworm.com/read/412417/11200164
java staticprint.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/412417/11200168
java staticspool.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/266192/11237200
makefile
# From Thinking in Patterns (with Java) by Bruce Eckel
# At http://www.BruceEckel.com
# (c)2003 Bruce Eckel
# Copyright notice in Copyright.txt
# Automatically-generated MAKEFILE
# For examples
www.eeworm.com/read/266192/11237201
xml build.xml
build.xml for singleton of "Thinking in Java, 3rd Edition"
by Bruce