Java Doc for JMLEqualsSequence.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.JMLEqualsSequence

JMLEqualsSequence
public class JMLEqualsSequence implements JMLCollection(Code)


Field Summary
final public static  JMLEqualsSequenceEMPTY
     The empty JMLEqualsSequence.
final protected  BigInteger_length
     This sequence's length.
final protected  JMLListEqualsNodetheSeq
     The list representing this sequence's elements, in order.

Constructor Summary
public  JMLEqualsSequence()
     Initialize this to be the empty sequence.
public  JMLEqualsSequence(Object e)
     Initialize this to be the sequence containing just the given element.
protected  JMLEqualsSequence(JMLListEqualsNode ls, int len)
     Initialize this sequence based on the given representation.

Method Summary
public  Objectclone()
     Return a clone of this object.
public  JMLEqualsSequenceconcat(JMLEqualsSequence s2)
     Return a sequence that is the concatenation of this with the given sequence.
Parameters:
  s2 - the sequence to place at the end of this sequence inthe result.
public  booleancontainsAll(java.util.Collection c)
     Tell whether, for each element in the given collection, there is a ".equals" element in this sequence.
public static  JMLEqualsSequenceconvertFrom(Object[] a)
     Return the sequence containing all the elements in the given array in the same order as the elements appear in the array.
public static  JMLEqualsSequenceconvertFrom(Object[] a, int size)
     Return the sequence containing the first 'size' elements in the given array in the same order as the elements appear in the array.
public static  JMLEqualsSequenceconvertFrom(java.util.Collection c)
     Return the sequence containing all the object in the given collection in the same order as the elements appear in the collection.
public static  JMLEqualsSequenceconvertFrom(JMLCollection c)
     Return the sequence containing all the object in the given JMLCollection in the same order as the elements appear in the collection.
public  intcount(Object item)
     Tells the number of times a given element occurs in the sequence.
public  JMLEqualsSequenceEnumeratorelements()
     Return a enumerator for this.
public  booleanequals(Object obj)
     Test whether this object's value is equal to the given argument.
public  Objectfirst()
     Return the first element in this sequence.
public  Objectget(int i)
     Return the element at the given zero-based index; a synonym for JMLEqualsSequence.itemAt .
public  booleanhas(Object elem)
     Tells whether the given element is ".equals" to an element in the sequence.
public  inthashCode()
     Return a hash code for this object.
public  JMLEqualsSequenceheader()
     Return a sequence containing all but the last element in this.
public  intindexOf(Object item)
     Return the zero-based index of the first occurrence of the given element in the sequence, if there is one
Parameters:
  item - the Object sought in this.
public  JMLEqualsSequenceinsertAfterIndex(int afterThisOne, Object item)
     Return a sequence like this, but with item put immediately after the given index.
public  JMLEqualsSequenceinsertBack(Object item)
     Return a sequence like this, but with the given item put an the end.
Parameters:
  item - the item to put at the end of the result.
public  JMLEqualsSequenceinsertBeforeIndex(int beforeThisOne, Object item)
     Return a sequence like this, but with item put immediately before the given index.
public  JMLEqualsSequenceinsertFront(Object item)
     Return a sequence like this, but with the given item put an the front.
Parameters:
  item - the item to put at the front of the result.
public  intint_length()
     Tells the number of elements in the sequence; a synonym for JMLEqualsSequence.size .
public  intint_size()
     Tells the number of elements in the sequence; a synonym for JMLEqualsSequence.length .
public  booleanisDeletionFrom(JMLEqualsSequence s2, Object elem)
     Tells whether this sequence is the result of deleting the given element once from the given sequence.
public  booleanisEmpty()
     Tells whether this sequence is empty.
public  booleanisInsertionInto(JMLEqualsSequence s2, Object elem)
     Tells whether this sequence is the result of inserting the given element once into the given sequence.
public  booleanisPrefix(JMLEqualsSequence s2)
     Tells whether the elements of the this sequence occur, in order, at the beginning of the given sequence, using ".equals" for comparisons.
public  booleanisProperPrefix(JMLEqualsSequence s2)
     Tells whether this sequence is shorter than the given sequence, and also if the elements of this sequence occur, in order, at the beginning of the given sequence, using ".equals" for comparisons.
public  booleanisProperSubsequence(JMLEqualsSequence s2)
     Tells whether this sequence is strictly shorter than the given sequence and a subsequence of it.
Parameters:
  s2 - the sequence to search for within this sequence.
public  booleanisProperSuffix(JMLEqualsSequence s2)
     Tells whether the this sequence is shorter than the given object, and also if the elements of this sequence occur, in order, at the end of the given sequence, using ".equals" for comparisons.
public  booleanisProperSupersequence(JMLEqualsSequence s2)
     Tells whether the given sequence is both longer than and a supersequence of this sequence.
Parameters:
  s2 - the sequence to search within for this sequence.
public  booleanisSubsequence(JMLEqualsSequence s2)
     Tells whether this sequence is a subsequence of the given sequence.
Parameters:
  s2 - the sequence to search for within this sequence.
public  booleanisSuffix(JMLEqualsSequence s2)
     Tells whether the elements of this sequence occur, in order, at the end of the given sequence, using ".equals" for comparisons.
public  booleanisSupersequence(JMLEqualsSequence s2)
     Tells whether the given sequence is a supersequence of this sequence.
Parameters:
  s2 - the sequence to search within for this sequence.
public  ObjectitemAt(int i)
     Return the element at the given zero-based index.
public  JMLIteratoriterator()
     Returns an iterator over this sequence.
public  Objectlast()
     Return the last element in this sequence.
public  JMLEqualsSequenceprefix(int n)
     Return a sequence containing the first n elements in this sequence.
public  JMLEqualsSequenceremoveItemAt(int index)
     Return a sequence like this, but without the element at the given zero-based index.
public  JMLEqualsSequenceremovePrefix(int n)
     Return a sequence containing all but the first n elements in this.
public  JMLEqualsSequencereplaceItemAt(int index, Object item)
     Return a sequence like this, but with item replacing the element at the given zero-based index.
public  JMLEqualsSequencereverse()
     Return a sequence that is the reverse of this sequence.
public static  JMLEqualsSequencesingleton(Object e)
     Return the singleton sequence containing the given element.
public  JMLEqualsSequencesubsequence(int from, int to)
     Returns a subsequence of this containing the elements beginning with index from (inclusive) and ending with index to (exclusive).
public  Object[]toArray()
     Return a new array containing all the elements of this in order.
public  JMLEqualsBagtoBag()
     Return a new JMLEqualsBag containing all the elements of this.
public  JMLEqualsSettoSet()
     Return a new JMLEqualsSet containing all the elements of this.
public  StringtoString()
    
public  JMLEqualsSequencetrailer()
     Return a sequence containing all but the first element in this.

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



_length
final protected BigInteger _length(Code)
This sequence's length.



theSeq
final protected JMLListEqualsNode theSeq(Code)
The list representing this sequence's elements, in order.




Constructor Detail
JMLEqualsSequence
public JMLEqualsSequence()(Code)
Initialize this to be the empty sequence.
See Also:   JMLEqualsSequence.EMPTY



JMLEqualsSequence
public JMLEqualsSequence(Object e)(Code)
Initialize this to be the sequence containing just the given element.
Parameters:
  e - the element that is the first element in this sequence.
See Also:   JMLEqualsSequence.singleton



JMLEqualsSequence
protected JMLEqualsSequence(JMLListEqualsNode ls, int len)(Code)
Initialize this sequence based on the given representation.




Method Detail
clone
public Object clone()(Code)
Return a clone of this object. This method does not clone the elements of the sequence.



concat
public JMLEqualsSequence concat(JMLEqualsSequence s2)(Code)
Return a sequence that is the concatenation of this with the given sequence.
Parameters:
  s2 - the sequence to place at the end of this sequence inthe result. the concatenation of this sequence and s2.



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 sequence.
Parameters:
  c - the collection whose elements are sought.



convertFrom
public static JMLEqualsSequence convertFrom(Object[] a)(Code)
Return the sequence containing all the elements in the given array in the same order as the elements appear in the array.



convertFrom
public static JMLEqualsSequence convertFrom(Object[] a, int size)(Code)
Return the sequence containing the first 'size' elements in the given array in the same order as the elements appear in the array.



convertFrom
public static JMLEqualsSequence convertFrom(java.util.Collection c) throws ClassCastException(Code)
Return the sequence containing all the object in the given collection in the same order as the elements appear in the collection.
throws:
  ClassCastException - if some element in c is not an instance of Object.
See Also:   JMLEqualsSequence.containsAll(java.util.Collection)



convertFrom
public static JMLEqualsSequence convertFrom(JMLCollection c) throws ClassCastException(Code)
Return the sequence containing all the object in the given JMLCollection in the same order as the elements appear in the collection.
throws:
  ClassCastException - if some element in c is not an instance of Object.



count
public int count(Object item)(Code)
Tells the number of times a given element occurs in the sequence.
See Also:   JMLEqualsSequence.has(Object)
See Also:   JMLEqualsSequence.itemAt(int)



elements
public JMLEqualsSequenceEnumerator elements()(Code)
Return a enumerator for this.
See Also:   JMLEqualsSequence.iterator()
See Also:   JMLEqualsSequence.itemAt()



equals
public boolean equals(Object obj)(Code)
Test whether this object's value is equal to the given argument.
See Also:   JMLEqualsSequence.isSuffix
See Also:   JMLEqualsSequence.int_size()



first
public Object first() throws JMLSequenceException(Code)
Return the first element in this sequence.
exception:
  JMLSequenceException - if the sequence is empty.
See Also:   JMLEqualsSequence.itemAt(int)
See Also:   JMLEqualsSequence.last
See Also:   JMLEqualsSequence.trailer
See Also:   JMLEqualsSequence.header



get
public Object get(int i) throws IndexOutOfBoundsException(Code)
Return the element at the given zero-based index; a synonym for JMLEqualsSequence.itemAt .
Parameters:
  i - the zero-based index into the sequence.
exception:
  IndexOutOfBoundsException - if the index i is out of range.
See Also:   JMLEqualsSequence.itemAt(int)



has
public boolean has(Object elem)(Code)
Tells whether the given element is ".equals" to an element in the sequence.
See Also:   JMLEqualsSequence.count(Object)



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



header
public JMLEqualsSequence header() throws JMLSequenceException(Code)
Return a sequence containing all but the last element in this.
exception:
  JMLSequenceException - if this is empty.
See Also:   JMLEqualsSequence.prefix
See Also:   JMLEqualsSequence.first
See Also:   JMLEqualsSequence.last
See Also:   JMLEqualsSequence.trailer
See Also:   JMLEqualsSequence.subsequence



indexOf
public int indexOf(Object item) throws JMLSequenceException(Code)
Return the zero-based index of the first occurrence of the given element in the sequence, if there is one
Parameters:
  item - the Object sought in this. the first index at which item occurs.
exception:
  JMLSequenceException - if item is not a member of the sequence.
See Also:   JMLEqualsSequence.itemAt(int)



insertAfterIndex
public JMLEqualsSequence insertAfterIndex(int afterThisOne, Object item) throws JMLSequenceException, IllegalStateException(Code)
Return a sequence like this, but with item put immediately after the given index.
Parameters:
  afterThisOne - a zero-based index into the sequence, or -1.
Parameters:
  item - the item to put after index afterThisOne if the index is in range
exception:
  JMLSequenceException - if the index is out of range.
See Also:   JMLEqualsSequence.insertBeforeIndex
See Also:   JMLEqualsSequence.insertFront
See Also:   JMLEqualsSequence.insertBack
See Also:   JMLEqualsSequence.removeItemAt



insertBack
public JMLEqualsSequence insertBack(Object item) throws IllegalStateException(Code)
Return a sequence like this, but with the given item put an the end.
Parameters:
  item - the item to put at the end of the result. a sequence the elements of this sequence followed by item.
See Also:   JMLEqualsSequence.insertAfterIndex
See Also:   JMLEqualsSequence.insertBeforeIndex
See Also:   JMLEqualsSequence.insertFront
See Also:   JMLEqualsSequence.removeItemAt
See Also:   JMLEqualsSequence.header
See Also:   JMLEqualsSequence.last



insertBeforeIndex
public JMLEqualsSequence insertBeforeIndex(int beforeThisOne, Object item) throws JMLSequenceException, IllegalStateException(Code)
Return a sequence like this, but with item put immediately before the given index.
Parameters:
  beforeThisOne - a zero-based index into the sequence,or the length of this.
Parameters:
  item - the item to put before index beforeThisOne if the index is in range
exception:
  JMLSequenceException - if the index is out of range.
See Also:   JMLEqualsSequence.insertAfterIndex
See Also:   JMLEqualsSequence.insertFront
See Also:   JMLEqualsSequence.insertBack
See Also:   JMLEqualsSequence.removeItemAt



insertFront
public JMLEqualsSequence insertFront(Object item) throws IllegalStateException(Code)
Return a sequence like this, but with the given item put an the front.
Parameters:
  item - the item to put at the front of the result. a sequence with item followed by the elements of this sequence.
See Also:   JMLEqualsSequence.insertAfterIndex
See Also:   JMLEqualsSequence.insertBeforeIndex
See Also:   JMLEqualsSequence.insertBack
See Also:   JMLEqualsSequence.removeItemAt
See Also:   JMLEqualsSequence.trailer
See Also:   JMLEqualsSequence.first



int_length
public int int_length()(Code)
Tells the number of elements in the sequence; a synonym for JMLEqualsSequence.size .
See Also:   JMLEqualsSequence.int_size()



int_size
public int int_size()(Code)
Tells the number of elements in the sequence; a synonym for JMLEqualsSequence.length .
See Also:   JMLEqualsSequence.length()
See Also:   JMLEqualsSequence.isEmpty()



isDeletionFrom
public boolean isDeletionFrom(JMLEqualsSequence s2, Object elem)(Code)
Tells whether this sequence is the result of deleting the given element once from the given sequence. That is, this sequence is exactly one element shorter than the given sequence, and its elements are in the same order, except for the deletion of the given element from the given sequence.
Parameters:
  s2 - the longer sequence, in which we see if the elem isdeleted from
Parameters:
  elem - the given element whether the elements of s2 occur in order in thissequence, with the deletion of elem somewhere.
See Also:   JMLEqualsSequence.isInsertionInto
See Also:   JMLEqualsSequence.isProperSupersequence
See Also:   JMLEqualsSequence.isProperSubsequence
See Also:   JMLEqualsSequence.subsequence



isEmpty
public boolean isEmpty()(Code)
Tells whether this sequence is empty.
See Also:   JMLEqualsSequence.int_size()
See Also:   JMLEqualsSequence.int_length()



isInsertionInto
public boolean isInsertionInto(JMLEqualsSequence s2, Object elem)(Code)
Tells whether this sequence is the result of inserting the given element once into the given sequence. That is, this sequence is exactly one element longer than the given sequence, and its elements are in the same order, except for the insertion of the given element.
Parameters:
  s2 - the shorter sequence, which we see if the elem isinserted into
Parameters:
  elem - the given element whether the elements of s2 occur in order in thissequence, with the insertion of elem somewhere.
See Also:   JMLEqualsSequence.isDeletionFrom
See Also:   JMLEqualsSequence.isProperSupersequence
See Also:   JMLEqualsSequence.isProperSubsequence
See Also:   JMLEqualsSequence.subsequence



isPrefix
public boolean isPrefix(JMLEqualsSequence s2)(Code)
Tells whether the elements of the this sequence occur, in order, at the beginning of the given sequence, using ".equals" for comparisons.
See Also:   JMLEqualsSequence.isProperPrefix
See Also:   JMLEqualsSequence.isSuffix



isProperPrefix
public boolean isProperPrefix(JMLEqualsSequence s2)(Code)
Tells whether this sequence is shorter than the given sequence, and also if the elements of this sequence occur, in order, at the beginning of the given sequence, using ".equals" for comparisons.
See Also:   JMLEqualsSequence.isPrefix
See Also:   JMLEqualsSequence.isProperSuffix



isProperSubsequence
public boolean isProperSubsequence(JMLEqualsSequence s2)(Code)
Tells whether this sequence is strictly shorter than the given sequence and a subsequence of it.
Parameters:
  s2 - the sequence to search for within this sequence. whether the elements of s2 occur (in order) within this.
See Also:   JMLEqualsSequence.isSubsequence
See Also:   JMLEqualsSequence.isProperSupersequence



isProperSuffix
public boolean isProperSuffix(JMLEqualsSequence s2)(Code)
Tells whether the this sequence is shorter than the given object, and also if the elements of this sequence occur, in order, at the end of the given sequence, using ".equals" for comparisons.
See Also:   JMLEqualsSequence.isSuffix
See Also:   JMLEqualsSequence.isProperPrefix



isProperSupersequence
public boolean isProperSupersequence(JMLEqualsSequence s2)(Code)
Tells whether the given sequence is both longer than and a supersequence of this sequence.
Parameters:
  s2 - the sequence to search within for this sequence. whether the elements of this occur (in order) within s2.
See Also:   JMLEqualsSequence.isSupersequence
See Also:   JMLEqualsSequence.isProperSubsequence



isSubsequence
public boolean isSubsequence(JMLEqualsSequence s2)(Code)
Tells whether this sequence is a subsequence of the given sequence.
Parameters:
  s2 - the sequence to search for within this sequence. whether the elements of this occur (in order) within s2.
See Also:   JMLEqualsSequence.isProperSubsequence
See Also:   JMLEqualsSequence.isSupersequence



isSuffix
public boolean isSuffix(JMLEqualsSequence s2)(Code)
Tells whether the elements of this sequence occur, in order, at the end of the given sequence, using ".equals" for comparisons.
See Also:   JMLEqualsSequence.isProperSuffix
See Also:   JMLEqualsSequence.isPrefix



isSupersequence
public boolean isSupersequence(JMLEqualsSequence s2)(Code)
Tells whether the given sequence is a supersequence of this sequence.
Parameters:
  s2 - the sequence to search within for this sequence. whether the elements of this occur (in order) within s2.
See Also:   JMLEqualsSequence.isProperSubsequence
See Also:   JMLEqualsSequence.isSubsequence



itemAt
public Object itemAt(int i) throws JMLSequenceException(Code)
Return the element at the given zero-based index.
Parameters:
  i - the zero-based index into the sequence.
exception:
  JMLSequenceException - if the index i is out of range.
See Also:   JMLEqualsSequence.get(int)
See Also:   JMLEqualsSequence.has(Object)
See Also:   JMLEqualsSequence.count(Object)
See Also:    #itemAt(\bigint)



iterator
public JMLIterator iterator()(Code)
Returns an iterator over this sequence.
See Also:   JMLEqualsSequence.elements()



last
public Object last() throws JMLSequenceException(Code)
Return the last element in this sequence.
exception:
  JMLSequenceException - if the sequence is empty.
See Also:   JMLEqualsSequence.itemAt(int)
See Also:   JMLEqualsSequence.first
See Also:   JMLEqualsSequence.header
See Also:   JMLEqualsSequence.trailer



prefix
public JMLEqualsSequence prefix(int n) throws JMLSequenceException(Code)
Return a sequence containing the first n elements in this sequence.
Parameters:
  n - the number of elements in the result.
exception:
  JMLSequenceException - if n is negative or greater thanthe length of the sequence.
See Also:   JMLEqualsSequence.trailer
See Also:   JMLEqualsSequence.removePrefix
See Also:   JMLEqualsSequence.subsequence



removeItemAt
public JMLEqualsSequence removeItemAt(int index) throws JMLSequenceException(Code)
Return a sequence like this, but without the element at the given zero-based index.
Parameters:
  index - the zero-based index into the sequence.
exception:
  JMLSequenceException - if the index is out of range.
See Also:   JMLEqualsSequence.itemAt(int)
See Also:   JMLEqualsSequence.removeItemAt
See Also:   JMLEqualsSequence.prefix
See Also:   JMLEqualsSequence.removePrefix
See Also:   JMLEqualsSequence.subsequence
See Also:   JMLEqualsSequence.concat



removePrefix
public JMLEqualsSequence removePrefix(int n) throws JMLSequenceException(Code)
Return a sequence containing all but the first n elements in this.
Parameters:
  n - the number of elements to remove
exception:
  JMLSequenceException - if n is negative or greater thanthe length of the sequence.
See Also:   JMLEqualsSequence.header
See Also:   JMLEqualsSequence.prefix
See Also:   JMLEqualsSequence.subsequence



replaceItemAt
public JMLEqualsSequence replaceItemAt(int index, Object item) throws JMLSequenceException(Code)
Return a sequence like this, but with item replacing the element at the given zero-based index.
Parameters:
  index - the zero-based index into the sequence.
Parameters:
  item - the item to put at index index
exception:
  JMLSequenceException - if the index is out of range.
See Also:   JMLEqualsSequence.itemAt(int)
See Also:   JMLEqualsSequence.replaceItemAt



reverse
public JMLEqualsSequence reverse()(Code)
Return a sequence that is the reverse of this sequence. the reverse of this sequence.



singleton
public static JMLEqualsSequence singleton(Object e)(Code)
Return the singleton sequence containing the given element.
See Also:   JMLEqualsSequence.JMLEqualsSequence(Object)



subsequence
public JMLEqualsSequence subsequence(int from, int to) throws JMLSequenceException(Code)
Returns a subsequence of this containing the elements beginning with index from (inclusive) and ending with index to (exclusive).
Parameters:
  from - the inclusive, zero-based element of the firstelement in the subsequence.
Parameters:
  to - the zero-based element of the first element thatshould not be in the subsequence.
exception:
  JMLSequenceException - if (from < 0 or from > toor to > length of this.
See Also:   JMLEqualsSequence.prefix
See Also:   JMLEqualsSequence.removePrefix
See Also:   JMLEqualsSequence.header
See Also:   JMLEqualsSequence.trailer
See Also:   JMLEqualsSequence.concat



toArray
public Object[] toArray()(Code)
Return a new array containing all the elements of this in order.
See Also:   JMLEqualsSequence.toSet()
See Also:   JMLEqualsSequence.toBag()



toBag
public JMLEqualsBag toBag()(Code)
Return a new JMLEqualsBag containing all the elements of this.
See Also:   JMLEqualsSequence.toSet()
See Also:   JMLEqualsSequence.toArray()



toSet
public JMLEqualsSet toSet()(Code)
Return a new JMLEqualsSet containing all the elements of this.
See Also:   JMLEqualsSequence.toBag()
See Also:   JMLEqualsSequence.toArray()



toString
public String toString()(Code)



trailer
public JMLEqualsSequence trailer() throws JMLSequenceException(Code)
Return a sequence containing all but the first element in this.
exception:
  JMLSequenceException - if this is empty.
See Also:   JMLEqualsSequence.removePrefix
See Also:   JMLEqualsSequence.last
See Also:   JMLEqualsSequence.first
See Also:   JMLEqualsSequence.header
See Also:   JMLEqualsSequence.subsequence



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.