arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1407.8251cs.SE
收藏

Java应用程序中接口的类型可变性和完整性

Type Variability and Completeness of Interfaces in Java Applications

Hani Abdeen, Osama Shata

摘要:

接口被广泛用作Java应用程序的中心设计元素。虽然接口是类似于抽象类的抽象类型,但Java应用程序中接口的使用可能与抽象类的使用有很大的不同。与抽象类不同,接口旨在支持Java程序中的多重继承。因此,接口的目的是编码属于不同类类型层次结构的类之间的共享相似性。因此,经常将接口用作部分类型,其中接口指定其实现类的一个特定方面或用法。在本文中,我们从两个角度研究接口在Java应用程序中的使用。首先,我们研究接口作为属于不同类类型层次结构的类的使用(即,接口的类型可变性)。其次,我们研究接口作为实现类的部分类型的使用(即,接口的类型完整性)。

英文摘要:

Interfaces are widely used as central design elements of Java applications. Although interfaces are abstract types similar to abstract classes, the usage of interfaces in Java applications may considerably differ from the usage of abstract classes. Unlike abstract classes, interfaces are meant to enable multiple inheritance in Java programs. Hence, interfaces are meant to encode shared similarities between classes belonging to different class-type hierarchies. Therefore, it is frequent to use interfaces as partial types, where an interface specifies one specific aspect or usage of its implementing classes. In this paper, we investigate interfaces' usage in Java applications from two perspectives. First, we investigate the usage of interfaces as types of classes belonging to different class-type hierarchies (i.e., interface's type variability). Second, we investigate the usage of interfaces as partial types of implementing classes (i.e., interface's type completeness).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑