Java Doc for ByteArrayStack.java in  » Development » PCJ » bak » pcj » list » 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 » Development » PCJ » bak.pcj.list 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


bak.pcj.list.AbstractByteList
   bak.pcj.list.ByteArrayList
      bak.pcj.list.ByteArrayStack

ByteArrayStack
public class ByteArrayStack extends ByteArrayList implements ByteStack(Code)
This class represents an array implemenation of stacks of byte values.
See Also:   java.util.ArrayList
author:
   Søren Bak
version:
   1.1 2003/3/3
since:
   1.0



Constructor Summary
public  ByteArrayStack()
     Creates a new array stack with capacity 10 and a relative growth factor of 1.0.
public  ByteArrayStack(ByteCollection c)
     Creates a new array stack with the same elements as a specified collection.
public  ByteArrayStack(byte[] a)
     Creates a new array stack with the same elements as a specified array.
public  ByteArrayStack(int capacity)
     Creates a new array stack with a specified capacity and a relative growth factor of 1.0.
public  ByteArrayStack(int capacity, double growthFactor)
     Creates a new array stack with a specified capacity and relative growth factor.
public  ByteArrayStack(int capacity, int growthChunk)
     Creates a new array stack with a specified capacity and absolute growth factor.

The array capacity increases to capacity()+growthChunk. This strategy is good for avoiding wasting memory.


Method Summary
public  bytepeek()
    
public  bytepop()
    
public  voidpush(byte v)
    


Constructor Detail
ByteArrayStack
public ByteArrayStack()(Code)
Creates a new array stack with capacity 10 and a relative growth factor of 1.0.
See Also:   ByteArrayStack.ByteArrayStack(int,double)



ByteArrayStack
public ByteArrayStack(ByteCollection c)(Code)
Creates a new array stack with the same elements as a specified collection. The elements of the specified collection are pushed in the collection's iteration order.
Parameters:
  c - the collection whose elements to add to the newstack.
throws:
  NullPointerException - if c is null.



ByteArrayStack
public ByteArrayStack(byte[] a)(Code)
Creates a new array stack with the same elements as a specified array. The elements of the specified array are pushed in the order of the array.
Parameters:
  a - the array whose elements to add to the newstack.
throws:
  NullPointerException - if a is null.
since:
   1.1



ByteArrayStack
public ByteArrayStack(int capacity)(Code)
Creates a new array stack with a specified capacity and a relative growth factor of 1.0.
Parameters:
  capacity - the initial capacity of the stack.
See Also:   ByteArrayStack.ByteArrayStack(int,double)
throws:
  IllegalArgumentException - if capacity is negative.



ByteArrayStack
public ByteArrayStack(int capacity, double growthFactor)(Code)
Creates a new array stack with a specified capacity and relative growth factor.

The array capacity increases to capacity()*(1+growthFactor). This strategy is good for avoiding many capacity increases, but the amount of wasted memory is approximately the size of the stack.
Parameters:
  capacity - the initial capacity of the stack.
Parameters:
  growthFactor - the relative amount with which to increase thethe capacity when a capacity increase is needed.
throws:
  IllegalArgumentException - if capacity is negative;if growthFactor is negative.




ByteArrayStack
public ByteArrayStack(int capacity, int growthChunk)(Code)
Creates a new array stack with a specified capacity and absolute growth factor.

The array capacity increases to capacity()+growthChunk. This strategy is good for avoiding wasting memory. However, an overhead is potentially introduced by frequent capacity increases.
Parameters:
  capacity - the initial capacity of the stack.
Parameters:
  growthChunk - the absolute amount with which to increase thethe capacity when a capacity increase is needed.
throws:
  IllegalArgumentException - if capacity is negative;if growthChunk is negative.





Method Detail
peek
public byte peek()(Code)



pop
public byte pop()(Code)



push
public void push(byte v)(Code)



Fields inherited from bak.pcj.list.ByteArrayList
final public static int DEFAULT_CAPACITY(Code)(Java Doc)
final public static int DEFAULT_GROWTH_CHUNK(Code)(Java Doc)
final public static double DEFAULT_GROWTH_FACTOR(Code)(Java Doc)

Methods inherited from bak.pcj.list.ByteArrayList
public void add(int index, byte v)(Code)(Java Doc)
public int capacity()(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean contains(byte v)(Code)(Java Doc)
public int ensureCapacity(int capacity)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public byte get(int index)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int indexOf(byte c)(Code)(Java Doc)
public int indexOf(int index, byte c)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public int lastIndexOf(byte c)(Code)(Java Doc)
public boolean remove(byte v)(Code)(Java Doc)
public byte removeElementAt(int index)(Code)(Java Doc)
public byte set(int index, byte v)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public byte[] toArray()(Code)(Java Doc)
public byte[] toArray(byte[] a)(Code)(Java Doc)
public void trimToSize()(Code)(Java Doc)

Methods inherited from bak.pcj.list.AbstractByteList
public boolean add(byte v)(Code)(Java Doc)
public void add(int index, byte v)(Code)(Java Doc)
public boolean addAll(int index, ByteCollection c)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int indexOf(byte c)(Code)(Java Doc)
public int indexOf(int index, byte c)(Code)(Java Doc)
public ByteIterator iterator()(Code)(Java Doc)
public int lastIndexOf(byte c)(Code)(Java Doc)
public int lastIndexOf(int index, byte c)(Code)(Java Doc)
public ByteListIterator listIterator()(Code)(Java Doc)
public ByteListIterator listIterator(int index)(Code)(Java Doc)
public byte removeElementAt(int index)(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.