码迷,mamicode.com
首页 >  
搜索关键字:interface    ( 13681个结果
java之动态代理
动态代理这个名词就不用多说了,是经典的二十三种设计模式中的一种。代理模式也不多说,现在聊聊动态代理的方式。 第一种方式是JDK自带方式,原理是在程序运行时,运用反射机制动态创建而成,不过它有一个先决条件就是被代理对象必须是实现某个接口的对象才能代理。看代码: public interface...
分类:编程语言   时间:2014-06-25 23:15:21    阅读次数:300
Java注释@interface的用法【转】
java用 @interface Annotation{ } 定义一个注解 @Annotation,一个注解是一个类。@Override,@Deprecated,@SuppressWarnings为常见的3个注解。注解相当于一种标记,在程序中加上了注解就等于为程序加上了某种标记,以后,JAVAC编....
分类:编程语言   时间:2014-06-25 21:37:54    阅读次数:319
UITableView中headerView视察滚动的简单实现
简单思路:实例一个UIScrollView,在scrollView上添加两个UIView, 为scrollView添加观察者,观察scrollView的contentOffset属性.当偏移量改变时,改变UIView视图的坐标.示例代码:@interface RootViewController (...
分类:其他好文   时间:2014-06-24 13:35:15    阅读次数:297
Openvswitch手册(7)
我们来看Interfaces ofport: OpenFlow port number for this interface. type: system: An ordinary network device, e.g. eth0 on Linux. internal: A simulated ne...
分类:其他好文   时间:2014-06-24 12:23:51    阅读次数:316
swift 笔记 (十九) —— 协议
协议(Protocols) 协议仅是用定义某些任务或者是功能必须的方法和属性。类似于java里的interface的作用。但协议并不会实现具体的功能。 我猜这个名字源于OO中提到的“契约”,但我并不觉得这名字很好,反而是interface这名字更容被接受,因为我觉得协议这个名字很容易和网络编程的时候的网络协议搞混,网络协议也通常简称为协议。 语法: protocol...
分类:其他好文   时间:2014-06-22 19:20:37    阅读次数:195
SPI_FLASH 操作
一.概念: SPI:serial peripheral interface 串行接口设备,spi flash 就是通过串行的接口进行操作的flash存储设备 flash按照内部存储结构不同,分为两种:nor flash和nand flash。这里spi flash 属于 nor flash! spi flash 读写较慢,次数有限制,一般用于不经常更改的存储。...
分类:其他好文   时间:2014-06-22 18:22:39    阅读次数:200
struts2 验证继承和验证短路效应
当框架开始处理时收集验证文件的位置: SuperClass-validation.xml SuperClass-aliasName-validation.xml Interface-validation.xml Interface-aliasName-validation.xml ActionClass-validation.xml ActionClass-aliasName-vali...
分类:其他好文   时间:2014-06-22 17:08:27    阅读次数:135
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android
在写自定义的view时,有时会报以下错误: Caused by: java.lang.NoSuchMethodException: [class android.content.Context, interface android.util.AttributeSet]          android:id="@id/viewpage_container"...
分类:移动开发   时间:2014-06-22 15:46:23    阅读次数:608
思科2960trunk vlan配置
en conf t vlan id end conf t inter rang gi 0/0/1-x switchport access vlan id no shutdown exit (config)#interface range gigabitEthernet 1/0/23-24 (config-if-range)#switchport mode trunk (con...
分类:其他好文   时间:2014-06-22 14:12:59    阅读次数:421
NSUserDefaults写入和读取自定义的对象
需要写入的对象必须实现NSCoding protocol Person.h #import #import "Face.h" @interface Person : NSObject @property (nonatomic, strong) NSString *personId; @property (nonatomic, strong) NSString *n...
分类:其他好文   时间:2014-06-22 08:00:31    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!