Java Doc for JMLValueSet.java in  » Testing » KeY » org » jmlspecs » models » 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 » org.jmlspecs.models 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jmlspecs.models.JMLValueSetSpecs
      org.jmlspecs.models.JMLValueSet

JMLValueSet
public class JMLValueSet extends JMLValueSetSpecs implements JMLCollection(Code)
Sets of values. This type uses ".equals" to compare elements, and clones elements that are passed into and returned from the set's methods.

For the purposes of informal specification in the methods below, we assume there is a model field

public model mathematical_set theSet;
that you can think of as a mathematical set of values.
version:
   $Revision: 1.2 $
author:
   Gary T. Leavens, with help from Albert Baker, Clyde Ruby,
author:
   and others.
See Also:   JMLCollection
See Also:   JMLType
See Also:   JMLEqualsSet
See Also:   JMLObjectSet
See Also:   JMLValueSetEnumerator
See Also:   JMLValueSetSpecs
See Also:   JMLObjectBag
See Also:   JMLEqualsBag
See Also:   JMLValueBag


Field Summary
final public static  JMLValueSetEMPTY
     The empty JMLValueSet.
final protected  intsize
     The number of elements in this set.
final protected  JMLListValueNodethe_list
     The list representing the elements of this set.

Constructor Summary
public  JMLValueSet()
     Initialize this to be an empty set.
public  JMLValueSet(JMLType e)
    
protected  JMLValueSet(JMLListValueNode ls, int sz)
    
protected  JMLValueSet(JMLListValueNode ls)
    

Method Summary
public  JMLTypechoose()
     Return an arbitrary element of this.
public  Objectclone()
     Return a clone of this object.
public  booleancontainsAll(java.util.Collection c)
     Tell whether, for each element in the given collection, there is a ".equals" element in this set.
public static  JMLValueSetconvertFrom(JMLType[] a)
     Return the set containing all the elements in the given array.
public static  JMLValueSetconvertFrom(java.util.Collection c)
     Return the set containing all the value in the given collection.
public static  JMLValueSetconvertFrom(JMLCollection c)
     Return the set containing all the value in the given JMLCollection.
public  JMLValueSetdifference(JMLValueSet s2)
    
public  JMLValueSetEnumeratorelements()
     Returns an Enumeration over this set.
public  booleanequals(Object s2)
    
protected  JMLValueSetfast_insert(JMLType elem)
     Returns a new set that contains all the elements of this and also the given argument, assuming the argument is not in the set.
public  booleanhas(JMLType elem)
     Is the argument ".equals" to one of the values in theSet.
public  inthashCode()
     Return a hash code for this object.
public  JMLValueSetinsert(JMLType elem)
     Returns a new set that contains all the elements of this and also the given argument.
public  intint_size()
     Tells the number of elements in the set.
public  JMLValueSetintersection(JMLValueSet s2)
     Returns a new set that contains all the elements that are in both this and the given argument.
public  booleanisEmpty()
     Is the set empty.
public  booleanisProperSubset(JMLValueSet s2)
     Tells whether this set is a subset of but not equal to the argument.
public  booleanisProperSuperset(JMLValueSet s2)
     Tells whether this set is a superset of but not equal to the argument.
public  booleanisSubset(JMLValueSet s2)
     Tells whether this set is a subset of or equal to the argument.
public  booleanisSuperset(JMLValueSet s2)
     Tells whether this set is a superset of or equal to the argument.
public  JMLIteratoriterator()
     Returns an Iterator over this set.
public  JMLValueSetpowerSet()
    
public  JMLValueSetremove(JMLType elem)
     Returns a new set that contains all the elements of this except for the given argument.
public static  JMLValueSetsingleton(JMLType e)
     Return the singleton set containing the given element.
public  JMLType[]toArray()
     Return a new array containing all the elements of this.
public  JMLValueBagtoBag()
     Return a new JMLValueBag containing all the elements of this.
public  JMLValueSequencetoSequence()
     Return a new JMLValueSequence containing all the elements of this.
public  StringtoString()
    
public  JMLValueSetunion(JMLValueSet s2)
    

Field Detail
EMPTY
final public static JMLValueSet EMPTY(Code)
The empty JMLValueSet.
See Also:   JMLValueSet.JMLValueSet()



size
final protected int size(Code)
The number of elements in this set.



the_list
final protected JMLListValueNode the_list(Code)
The list representing the elements of this set.




Constructor Detail
JMLValueSet
public JMLValueSet()(Code)
Initialize this to be an empty set.
See Also:   JMLValueSet.EMPTY



JMLValueSet
public JMLValueSet(JMLType e)(Code)



JMLValueSet
protected JMLValueSet(JMLListValueNode ls, int sz)(Code)



JMLValueSet
protected JMLValueSet(JMLListValueNode ls)(Code)




Method Detail
choose
public JMLType choose() throws JMLNoSuchElementException(Code)
Return an arbitrary element of this.
exception:
  JMLNoSuchElementException - if this is empty.
See Also:   JMLValueSet.isEmpty()
See Also:   JMLValueSet.elements()



clone
public Object clone()(Code)
Return a clone of this object. This method clones the elements of the set.



containsAll
public boolean containsAll(java.util.Collection c)(Code)
Tell whether, for each element in the given collection, there is a ".equals" element in this set.
Parameters:
  c - the collection whose elements are sought.
See Also:   JMLValueSet.isSuperset(JMLValueSet)
See Also:   JMLValueSet.convertFrom(java.util.Collection)



convertFrom
public static JMLValueSet convertFrom(JMLType[] a)(Code)
Return the set containing all the elements in the given array.



convertFrom
public static JMLValueSet convertFrom(java.util.Collection c) throws ClassCastException(Code)
Return the set containing all the value in the given collection.
throws:
  ClassCastException - if some element in c is not an instance of JMLType.
See Also:   JMLValueSet.containsAll(java.util.Collection)



convertFrom
public static JMLValueSet convertFrom(JMLCollection c) throws ClassCastException(Code)
Return the set containing all the value in the given JMLCollection.
throws:
  ClassCastException - if some element in c is not an instance of JMLType.



difference
public JMLValueSet difference(JMLValueSet s2)(Code)



elements
public JMLValueSetEnumerator elements()(Code)
Returns an Enumeration over this set.
See Also:   JMLValueSet.iterator()



equals
public boolean equals(Object s2)(Code)



fast_insert
protected JMLValueSet fast_insert(JMLType elem)(Code)
Returns a new set that contains all the elements of this and also the given argument, assuming the argument is not in the set.
See Also:   JMLValueSet.insert(JMLType)



has
public boolean has(JMLType elem)(Code)
Is the argument ".equals" to one of the values in theSet.



hashCode
public int hashCode()(Code)
Return a hash code for this object.



insert
public JMLValueSet insert(JMLType elem) throws IllegalStateException(Code)
Returns a new set that contains all the elements of this and also the given argument.
See Also:   JMLValueSet.has(JMLType)
See Also:   JMLValueSet.remove(JMLType)



int_size
public int int_size()(Code)
Tells the number of elements in the set.



intersection
public JMLValueSet intersection(JMLValueSet s2)(Code)
Returns a new set that contains all the elements that are in both this and the given argument.
See Also:   JMLValueSet.union(JMLValueSet)
See Also:   JMLValueSet.difference(JMLValueSet)



isEmpty
public boolean isEmpty()(Code)
Is the set empty.
See Also:   JMLValueSet.int_size()
See Also:   JMLValueSet.has(JMLType)



isProperSubset
public boolean isProperSubset(JMLValueSet s2)(Code)
Tells whether this set is a subset of but not equal to the argument.
See Also:   JMLValueSet.isSubset(JMLValueSet)
See Also:   JMLValueSet.isProperSuperset(JMLValueSet)



isProperSuperset
public boolean isProperSuperset(JMLValueSet s2)(Code)
Tells whether this set is a superset of but not equal to the argument.
See Also:   JMLValueSet.isSuperset(JMLValueSet)
See Also:   JMLValueSet.isProperSubset(JMLValueSet)



isSubset
public boolean isSubset(JMLValueSet s2)(Code)
Tells whether this set is a subset of or equal to the argument.
See Also:   JMLValueSet.isProperSubset(JMLValueSet)
See Also:   JMLValueSet.isSuperset(JMLValueSet)



isSuperset
public boolean isSuperset(JMLValueSet s2)(Code)
Tells whether this set is a superset of or equal to the argument.
See Also:   JMLValueSet.isProperSuperset(JMLValueSet)
See Also:   JMLValueSet.isSubset(JMLValueSet)
See Also:   JMLValueSet.containsAll(java.util.Collection)



iterator
public JMLIterator iterator()(Code)
Returns an Iterator over this set.
See Also:   JMLValueSet.elements()



powerSet
public JMLValueSet powerSet() throws IllegalStateException(Code)



remove
public JMLValueSet remove(JMLType elem)(Code)
Returns a new set that contains all the elements of this except for the given argument.
See Also:   JMLValueSet.has(JMLType)
See Also:   JMLValueSet.insert(JMLType)



singleton
public static JMLValueSet singleton(JMLType e)(Code)
Return the singleton set containing the given element.
See Also:   JMLValueSet.JMLValueSet(JMLType)



toArray
public JMLType[] toArray()(Code)
Return a new array containing all the elements of this.
See Also:   JMLValueSet.toSequence()



toBag
public JMLValueBag toBag()(Code)
Return a new JMLValueBag containing all the elements of this.
See Also:   JMLValueSet.toSequence()



toSequence
public JMLValueSequence toSequence()(Code)
Return a new JMLValueSequence containing all the elements of this.
See Also:   JMLValueSet.toBag()
See Also:   JMLValueSet.toArray()



toString
public String toString()(Code)



union
public JMLValueSet union(JMLValueSet s2) throws IllegalStateException(Code)



Methods inherited from org.jmlspecs.models.JMLValueSetSpecs
abstract public Object clone()(Code)(Java Doc)
abstract public boolean has(JMLType elem)(Code)(Java Doc)
public boolean has(Object elem)(Code)(Java Doc)
abstract public JMLValueSet insert(JMLType elem)(Code)(Java Doc)
abstract public int int_size()(Code)(Java Doc)

Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.