Understanding the Impact of Collection Contracts on Design

被引:0
|
作者
Nelson, Stephen [1 ]
Pearce, David J. [1 ]
Noble, James [1 ]
机构
[1] Victoria Univ Wellington, Wellington, New Zealand
来源
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Java provides a specification for a user-defined general purpose equivalence operator for objects, but collections such as Set have more stringent requirements. This inconsistency breaks polymorphism: programmers must take care to follow Set's contract rather than the more general Object contract if their object could enter a Set. We have dynamically profiled 30 Java applications to better understand the way programmers design their objects, to determine whether they program with collections in mind. Our results indicate that objects which enter collections behave very differently to objects which do not. Our findings should help developers understand the impact of design choices they make, and guide future language designers when adding support for collections and/or equality.
引用
收藏
页码:61 / 78
页数:18
相关论文
共 50 条
  • [31] THE IMPACT OF THE WAR ON PRIVATE CONTRACTS
    Schroeder, Werner W.
    MICHIGAN LAW REVIEW, 1944, 42 (04) : 603 - 622
  • [32] Psychological contracts: enhancing understanding of the expatriation experience
    O'Donohue, Wayne
    Hutchings, Kate
    Hansen, Samantha D.
    INTERNATIONAL JOURNAL OF HUMAN RESOURCE MANAGEMENT, 2018, 29 (08): : 1379 - 1401
  • [33] Psychological contracts in the workplace: Understanding the ties that motivate
    Rousseau, DM
    ACADEMY OF MANAGEMENT EXECUTIVE, 2004, 18 (01): : 120 - 127
  • [34] Understanding the intention to use commodity futures contracts
    Michels, Marius
    Moellmann, Johannes
    Musshoff, Oliver
    AGRICULTURAL FINANCE REVIEW, 2019, 79 (05) : 582 - 597
  • [35] Understanding of English Contracts though Relation Maxims
    胥迟英
    蒋礼会
    海外英语, 2013, (17) : 268 - 270
  • [36] The design of private reinsurance contracts
    Jean-Baptiste, EL
    Santomero, AM
    JOURNAL OF FINANCIAL INTERMEDIATION, 2000, 9 (03) : 274 - 297
  • [37] The design of bank loan contracts
    Gorton, G
    Kahn, J
    REVIEW OF FINANCIAL STUDIES, 2000, 13 (02): : 331 - 364
  • [38] From UML to design by contracts
    Mingins, C
    Liu, Y
    JOOP-JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 2001, 13 (12): : 6 - 9
  • [39] THE DESIGN OF CONTRACTS AND REMEDIES FOR BREACH
    SHAVELL, S
    QUARTERLY JOURNAL OF ECONOMICS, 1984, 99 (01): : 121 - 148
  • [40] Ulstein Design wins Brazilian design contracts
    不详
    NAVAL ARCHITECT, 2010, : 6 - 6