Source Code Cross Referenced for List.java in  » Testing » KeY » java » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » KeY » java.util 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package java.util;
002:
003:        public interface List extends Collection {
004:
005:            /*@ public model instance non_null JMLEqualsSequence theList;
006:              @                                               in theCollection;
007:              @ public instance represents theCollection <- theList.toBag();
008:              @*/
009:
010:            /*@
011:              @   public normal_behavior
012:              @     requires index <= end; 
013:              @     assignable end, list[end];
014:              @     ensures \old(end)+1 == end;
015:              @     ensures list[index] == o; 
016:              @     ensures (\forall int i; i>=index && i<end-1; \old(list[i]) == list[i+1]);
017:              @*/
018:            void add(int index, Object o);
019:
020:            /*@ also
021:              @   public behavior
022:              @     assignable theCollection;
023:              @     ensures \result ==> theList.equals(\old(theList).insertBack(o));
024:              @*/
025:            boolean add(Object o);
026:
027:            /*@   public behavior
028:              @     requires c != null;
029:              @     requires 0 <= index && index <= size();
030:              @     requires c.elementType <: elementType;
031:              @     requires !containsNull ==> !c.containsNull;
032:              @     assignable theCollection;
033:              @     ensures \result
034:              @         ==> theList.equals(
035:              @                     \old(theList.subsequence(0,index))
036:              @                      .concat(JMLEqualsSequence.convertFrom(c))
037:              @                      .concat(\old(theList.subsequence(index,size()))));
038:              @     signals (UnsupportedOperationException);
039:              @     signals (IllegalArgumentException);
040:              @ also
041:              @   public exceptional_behavior
042:              @     requires c == null || !(0 <= index && index <= size())
043:              @             || !(c.elementType <: elementType)
044:              @             || (!containsNull && c.containsNull);
045:              @     assignable \nothing;
046:              @     signals (ClassCastException)
047:              @             c != null && !(c.elementType <: elementType);
048:              @     signals (NullPointerException) c == null;
049:              @     signals (IndexOutOfBoundsException)
050:              @             !(0 <= index && index <= size());
051:              @*/
052:            boolean addAll(int index, Collection c);
053:
054:            boolean addAll(Collection c);
055:
056:            void clear();
057:
058:            boolean contains(Object o);
059:
060:            //@ pure
061:            boolean containsAll(Collection c);
062:
063:            boolean equals(Object o);
064:
065:            /*@ public normal_behavior
066:              @   requires 0 <= index && index < size();
067:              @   assignable \nothing;
068:              @   ensures \result == theList.get(index);
069:              @ also
070:              @ public normal_behavior
071:              @   requires 0 <= index && index < size();
072:              @   assignable \nothing;
073:              @   ensures \result == list[index];
074:              @ also
075:              @ public exceptional_behavior
076:              @   requires !(0 <= index && index < size());
077:              @   assignable \nothing;
078:              @   signals (IndexOutOfBoundsException);
079:              @*/
080:            //@ pure 
081:            Object get(int index);
082:
083:            int hashCode();
084:
085:            /*@ public normal_behavior
086:              @   requires (\exists int i; 0<=i && i<end;  
087:              @             o == null ? list[i] == o : o.equals(list[i]));
088:              @   ensures  o == null ? list[\result] == o : o.equals(list[\result]);
089:              @   ensures  (\forall int j; 0<=j && j<end; o == null ? 
090:              @             list[j] == o ==> j>=\result : 
091:              @             o.equals(list[j]) ==> j>=\result);
092:              @ also public normal_behavior
093:              @   requires (\forall int i; 0<=i && i<end;  
094:              @             o == null ? list[i] != o : !o.equals(list[i]));
095:              @   ensures \result == -1;
096:              @*/
097:            int /*@ pure @*/indexOf(Object o);
098:
099:            boolean /*@ pure @*/isEmpty();
100:
101:            /*@ also
102:              @ public behavior
103:              @   assignable \nothing;
104:              @   ensures \result != null;
105:              @   ensures size() < Integer.MAX_VALUE
106:              @       ==> (\forall int i; 0 <= i && i < size();
107:              @                \result.hasNext(i) && \result.nthNextElement(i)
108:              @                 == toArray()[i]);
109:              @*/
110:            Iterator iterator();
111:
112:            int lastIndexOf(Object o);
113:
114:            ListIterator listIterator();
115:
116:            ListIterator listIterator(int index);
117:
118:            Object remove(int index);
119:
120:            /*@ also
121:              @   public behavior
122:              @     assignable theCollection;
123:              @     ensures \result
124:              @          ==> theList
125:              @              .equals(\old(theList.removeItemAt(theList.indexOf(o))));
126:              @*/
127:            boolean remove(Object o);
128:
129:            boolean removeAll(Collection c);
130:
131:            boolean retainAll(Collection c);
132:
133:            /*@
134:              @ public behavior
135:              @ requires !containsNull ==> element != null;
136:              @ requires (element == null) || \typeof(element) <: elementType;
137:              @ {|
138:              @   requires 0 <= index && index < size();
139:              @   assignable theCollection;
140:              @   ensures \result == (\old(theList.get(index)));
141:              @   ensures theList.equals(
142:              @              \old(theList.subsequence(0,index))
143:              @                   .insertBack(element)
144:              @                   .concat(\old(theList.subsequence(index+1,size()))));
145:              @   signals (UnsupportedOperationException);
146:              @   signals (ClassCastException);
147:              @   signals (NullPointerException);
148:              @   signals (IllegalArgumentException);
149:              @ also
150:              @   requires !(0 <= index && index < size());
151:              @   assignable \nothing;
152:              @   ensures false;
153:              @   signals (IndexOutOfBoundsException);
154:              @ |}
155:              @*/
156:            Object set(int index, Object element);
157:
158:            int /*@ pure @*/size();
159:
160:            List subList(int fromIndex, int toIndex);
161:
162:            /*@ also
163:              @  public normal_behavior
164:              @   requires size() < Integer.MAX_VALUE;
165:              @   assignable \nothing;
166:              @   ensures \result != null;
167:              @   ensures \result.length == size();
168:              @   ensures (\forall int i; 0 <= i && i < size();
169:              @                 \result[i].equals(theList.get(i)));
170:              @*/
171:            //@ pure
172:            Object[] toArray();
173:
174:            /*@ also
175:              @ public normal_behavior
176:              @   old int colSize = theCollection.int_size();
177:              @   old int arrSize = a.length;
178:              @   requires a!= null && colSize < Integer.MAX_VALUE;
179:              @   requires elementType <: \elemtype(\typeof(a));
180:              @   requires (\forall Object o; contains(o); \typeof(o) <: \elemtype(\typeof(a)));
181:              @   {|
182:              @     requires colSize <= arrSize;
183:              @     assignable a[*];
184:              @     ensures \result == a;
185:              @     ensures (\forall int k; 0 <= k && k < colSize;
186:              @                  theList.get(k) == \result[k]);
187:              @     ensures (\forall int i; colSize <= i && i < arrSize;
188:              @                             \result[i] == null);
189:              @   also
190:              @     requires colSize > arrSize;
191:              @     assignable \nothing;
192:              @     ensures \fresh(\result) && \result.length == colSize;
193:              @     ensures (\forall int k; 0 <= k && k < colSize;
194:              @                             theList.get(k) == \result[k]);
195:              @   |}
196:              @*/
197:            Object[] toArray(Object[] a);
198:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.