Java Doc for FloatArrayDeque.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.AbstractFloatList
   bak.pcj.list.FloatArrayDeque

FloatArrayDeque
public class FloatArrayDeque extends AbstractFloatList implements FloatDeque,Cloneable,Serializable(Code)
This class represents an array implementaion of deques of float values.
See Also:   java.util.LinkedList
author:
   Søren Bak
version:
   1.3 21-08-2003 19:25
since:
   1.0


Field Summary
final public static  intDEFAULT_CAPACITY
     The default capacity of this deque.
final public static  intDEFAULT_GROWTH_CHUNK
     The default chunk size with which to increase the capacity of this deque.
final public static  doubleDEFAULT_GROWTH_FACTOR
     The default factor with which to increase the capacity of this deque.

Constructor Summary
public  FloatArrayDeque()
     Creates a new array deque with capacity 10 and a relative growth factor of 1.0.
public  FloatArrayDeque(FloatCollection c)
     Creates a new array deque with the same elements as a specified collection.
public  FloatArrayDeque(float[] a)
     Creates a new array deque with the same elements as a specified array.
public  FloatArrayDeque(int capacity)
     Creates a new array deque with a specified capacity and a relative growth factor of 1.0.
public  FloatArrayDeque(int capacity, double growthFactor)
     Creates a new array deque with a specified capacity and relative growth factor.
public  FloatArrayDeque(int capacity, int growthChunk)
     Creates a new array deque 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  voidadd(int index, float v)
    
public  voidaddFirst(float v)
    
public  voidaddLast(float v)
    
public  intcapacity()
     Returns the current capacity of this deque.
public  voidclear()
    
public  Objectclone()
     Returns a clone of this array deque.
public  booleancontains(float v)
    
public  intensureCapacity(int capacity)
     Ensures that this deque has at least a specified capacity. The actual capacity is calculated from the growth factor or growth chunk specified to the constructor.
Parameters:
  capacity - the minimum capacity of this deque.
public  booleanequals(Object obj)
    
public  floatget(int index)
    
public  floatgetFirst()
    
public  floatgetLast()
    
public  inthashCode()
    
public  intindexOf(float c)
    
public  booleanisEmpty()
    
public  intlastIndexOf(float c)
    
public  booleanremove(float v)
    
public  floatremoveElementAt(int index)
    
public  floatremoveFirst()
    
public  floatremoveLast()
    
public  floatset(int index, float v)
    
public  intsize()
    
public  float[]toArray(float[] a)
    
public  voidtrimToSize()
     Minimizes the memory used by this array deque.

Field Detail
DEFAULT_CAPACITY
final public static int DEFAULT_CAPACITY(Code)
The default capacity of this deque.



DEFAULT_GROWTH_CHUNK
final public static int DEFAULT_GROWTH_CHUNK(Code)
The default chunk size with which to increase the capacity of this deque.



DEFAULT_GROWTH_FACTOR
final public static double DEFAULT_GROWTH_FACTOR(Code)
The default factor with which to increase the capacity of this deque.




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



FloatArrayDeque
public FloatArrayDeque(FloatCollection c)(Code)
Creates a new array deque with the same elements as a specified collection. The elements of the specified collection are added to the end of the deque in the collection's iteration order.
Parameters:
  c - the collection whose elements to add to the newdeque.
throws:
  NullPointerException - if c is null.



FloatArrayDeque
public FloatArrayDeque(float[] a)(Code)
Creates a new array deque with the same elements as a specified array. The elements of the specified array are added the end of the deque in the order in which they appear in the array.
Parameters:
  a - the array whose elements to add to the new deque.
throws:
  NullPointerException - if a is null.
since:
   1.1



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



FloatArrayDeque
public FloatArrayDeque(int capacity, double growthFactor)(Code)
Creates a new array deque 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 deque.
Parameters:
  capacity - the initial capacity of the deque.
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.




FloatArrayDeque
public FloatArrayDeque(int capacity, int growthChunk)(Code)
Creates a new array deque 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 deque.
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
add
public void add(int index, float v)(Code)



addFirst
public void addFirst(float v)(Code)



addLast
public void addLast(float v)(Code)



capacity
public int capacity()(Code)
Returns the current capacity of this deque. The capacity is the number of elements that the deque can contain without having to increase the amount of memory used. the current capacity of this deque.
See Also:   FloatArrayDeque.ensureCapacity(int)



clear
public void clear()(Code)



clone
public Object clone()(Code)
Returns a clone of this array deque. a clone of this array deque.
since:
   1.1



contains
public boolean contains(float v)(Code)



ensureCapacity
public int ensureCapacity(int capacity)(Code)
Ensures that this deque has at least a specified capacity. The actual capacity is calculated from the growth factor or growth chunk specified to the constructor.
Parameters:
  capacity - the minimum capacity of this deque. the new capacity of this deque.
See Also:   FloatArrayDeque.capacity()



equals
public boolean equals(Object obj)(Code)



get
public float get(int index)(Code)



getFirst
public float getFirst()(Code)



getLast
public float getLast()(Code)



hashCode
public int hashCode()(Code)



indexOf
public int indexOf(float c)(Code)



isEmpty
public boolean isEmpty()(Code)



lastIndexOf
public int lastIndexOf(float c)(Code)



remove
public boolean remove(float v)(Code)



removeElementAt
public float removeElementAt(int index)(Code)



removeFirst
public float removeFirst()(Code)



removeLast
public float removeLast()(Code)



set
public float set(int index, float v)(Code)



size
public int size()(Code)



toArray
public float[] toArray(float[] a)(Code)



trimToSize
public void trimToSize()(Code)
Minimizes the memory used by this array deque. The underlying array is replaced by an array whose size is exactly the number of elements in this array deque. The method can be used to free up memory after many removals.



Methods inherited from bak.pcj.list.AbstractFloatList
public boolean add(float v)(Code)(Java Doc)
public void add(int index, float v)(Code)(Java Doc)
public boolean addAll(int index, FloatCollection c)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int indexOf(float c)(Code)(Java Doc)
public int indexOf(int index, float c)(Code)(Java Doc)
public FloatIterator iterator()(Code)(Java Doc)
public int lastIndexOf(float c)(Code)(Java Doc)
public int lastIndexOf(int index, float c)(Code)(Java Doc)
public FloatListIterator listIterator()(Code)(Java Doc)
public FloatListIterator listIterator(int index)(Code)(Java Doc)
public float 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.