Java Doc for History.java in  » Web-Crawler » WebSPHINX » rcm » 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 » Web Crawler » WebSPHINX » rcm.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   rcm.util.History

History
public class History (Code)

Inner Class :class HistoryEnumeration implements Enumeration

Field Summary
protected  intcurr
    
public static  rcm.util.Debugdebug
    
protected  intend
    
protected  Object[]history
    
protected  intstart
    

Constructor Summary
public  History(int max)
     Make a History.
public  History(History h)
     Make a duplicate of another History.

Method Summary
public  voidadd(Object obj)
     Add an object to the end of the history, moving the current point to it.
public  Objectback()
     Move back one object in the history, if possible.
public  EnumerationbackElements()
     Get the objects BEFORE the current object.
public  booleancanBack()
     Test whether back() will succeed.
public  booleancanForward()
     Test whether forward() will succeed.
public  voidclear()
     Clear the history.
public  booleancontains(Object obj)
     Test whether history already contains an object.
public  Enumerationelements()
     Get the objects in the history.
public  voidexpand()
     Double the capacity of the history.
protected  voidfireAdded(int i, int j)
    
protected  voidfireChanged(int i, int j)
    
protected  voidfireRemoved(int i, int j)
    
public  Objectforward()
     Move forward one object in the history, if possible.
public  EnumerationforwardElements()
     Get the objects AFTER the current object.
public  Objectget()
     Get the current object of the history.
public  booleanisEmpty()
     Test whether history is empty.
public  booleanisFull()
     Test whether history is full.
public  ObjectpeekBack()
     Get the object that would be returned by back(), without actually changing the current object.
public  ObjectpeekForward()
     Get the object that would be returned by forward(), without actually changing the current object.
public  voidput(Object obj)
     Add an object to the history after the current point (deleting all objects forward of this point).
public  voidreplace(Object obj)
     Replace the current object of the history.
public  ObjecttoEnd()
     Move to last (newest) object in the history, if possible.
public  ObjecttoStart()
     Move to first (oldest) object in the history, if possible.

Field Detail
curr
protected int curr(Code)



debug
public static rcm.util.Debug debug(Code)



end
protected int end(Code)



history
protected Object[] history(Code)



start
protected int start(Code)




Constructor Detail
History
public History(int max)(Code)
Make a History.
Parameters:
  max - Maximum length of history



History
public History(History h)(Code)
Make a duplicate of another History.
Parameters:
  h - History to copy




Method Detail
add
public void add(Object obj)(Code)
Add an object to the end of the history, moving the current point to it. If history overflows, the oldest object is thrown away.
Parameters:
  obj - Object to add to history



back
public Object back()(Code)
Move back one object in the history, if possible. previous object in the history, or null if at start.



backElements
public Enumeration backElements()(Code)
Get the objects BEFORE the current object.



canBack
public boolean canBack()(Code)
Test whether back() will succeed. true if and only if there are objects before the current object



canForward
public boolean canForward()(Code)
Test whether forward() will succeed. true if and only if there are objects after the current object



clear
public void clear()(Code)
Clear the history.



contains
public boolean contains(Object obj)(Code)
Test whether history already contains an object.
Parameters:
  obj - Object to search for true if and only if history contains an object that equals() obj



elements
public Enumeration elements()(Code)
Get the objects in the history.



expand
public void expand()(Code)
Double the capacity of the history.



fireAdded
protected void fireAdded(int i, int j)(Code)



fireChanged
protected void fireChanged(int i, int j)(Code)



fireRemoved
protected void fireRemoved(int i, int j)(Code)



forward
public Object forward()(Code)
Move forward one object in the history, if possible. next object in the history, or null if at end of history.



forwardElements
public Enumeration forwardElements()(Code)
Get the objects AFTER the current object.



get
public Object get()(Code)
Get the current object of the history. current object of history, or null if history is empty.



isEmpty
public boolean isEmpty()(Code)
Test whether history is empty. true if and only if history contains no objects



isFull
public boolean isFull()(Code)
Test whether history is full. true if and only if history contains max objects



peekBack
public Object peekBack()(Code)
Get the object that would be returned by back(), without actually changing the current object. object before current object, or null if at beginning of history or history is empty.



peekForward
public Object peekForward()(Code)
Get the object that would be returned by forward(), without actually changing the current object. object after current object, or null if at end of history or history is empty.



put
public void put(Object obj)(Code)
Add an object to the history after the current point (deleting all objects forward of this point). If history overflows, the oldest object is thrown away.
Parameters:
  obj - Object to add to history



replace
public void replace(Object obj)(Code)
Replace the current object of the history. The rest of the history is unaffected, and the current pointer stays where it is.

If the history is empty, then this call is equivalent to put(obj).
Parameters:
  obj - object to substitute




toEnd
public Object toEnd()(Code)
Move to last (newest) object in the history, if possible. last object in the history, or null if history empty.



toStart
public Object toStart()(Code)
Move to first (oldest) object in the history, if possible. first object in the history, or null if history empty.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws 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.