能够通过哈希表实现高效的集合操作。接口一个集合对象能够包括了下面接口:public interface Set> { public void add(Key key); public boolean contains(Key key); public void remove(Key...
分类:
其他好文 时间:
2014-09-16 00:07:49
阅读次数:
237
写一个类 起作用是 传值
#import
@interface singleton : NSObject
+(singleton *)shareData;
@property (strong, nonatomic) NSString *value;
@end
#import "singleton.h"...
分类:
移动开发 时间:
2014-09-15 11:21:28
阅读次数:
164
Category,分类,类目。主要作?用是为没有源代码的添加方法,例系统自带的NSString。通过Category添加的方法会成为原类的一部分。从?而达到扩展一 个类的功能。CategoryNSString+SayHi.h文件@interface NSString (SayHi)- (void)h...
分类:
其他好文 时间:
2014-09-14 23:34:07
阅读次数:
182
实现不考虑限制并发数的情况下对某队列的并发处理,欢迎批评指正: public interface IMessageQueueHandler { void StartRead(); } public abstract class SimplifiedMessage...
分类:
其他好文 时间:
2014-09-14 23:31:57
阅读次数:
274
xib和nib都是Interface Builder的图形界面设计文档,nib这个名字来自于NeXTSTEP系统,在NeXTSTEP被Apple收购之前,一直使用nib作为Interface Builder的图形文档,nib的发展经过了nib2.0,nib3.0,到NeXTSTEP被App...
分类:
其他好文 时间:
2014-09-14 22:03:27
阅读次数:
2727
Demo#import "SDViewController.h"@interface SDViewController ()@property (weak, nonatomic) IBOutlet UITextField *userName;@property (weak, nonatomic) I...
分类:
移动开发 时间:
2014-09-14 17:58:17
阅读次数:
197
/*abstract class AbsDemo{ abstract void show1(); abstract void show2();}当一个抽象类中的方法都是抽象的时候,这时可以将该抽象类用另一种形式定义和表示,就是 接口 interface。*///定义接口使用的关键字不是c...
分类:
编程语言 时间:
2014-09-14 15:19:47
阅读次数:
237
一:简单工厂 最初学习的一个运用简单工厂的例子是做一个计算器: 首先是接口public interface Cal {public double Calcu(double num1,double num2);}然后是加减乘除类实现计算接口:public class Add implements Ca...
分类:
数据库 时间:
2014-09-13 20:04:25
阅读次数:
255
unit D7ComboBoxStringsGetPatch; // The patch fixes TCustomComboBoxStrings.Get method for empty string item in Delphi 7. interface {$IF RTLVersion 15.....
分类:
其他好文 时间:
2014-09-13 18:40:15
阅读次数:
193