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


001:        /*
002:         *  Primitive Collections for Java.
003:         *  Copyright (C) 2002  Søren Bak
004:         *
005:         *  This library is free software; you can redistribute it and/or
006:         *  modify it under the terms of the GNU Lesser General Public
007:         *  License as published by the Free Software Foundation; either
008:         *  version 2.1 of the License, or (at your option) any later version.
009:         *
010:         *  This library is distributed in the hope that it will be useful,
011:         *  but WITHOUT ANY WARRANTY; without even the implied warranty of
012:         *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013:         *  Lesser General Public License for more details.
014:         *
015:         *  You should have received a copy of the GNU Lesser General Public
016:         *  License along with this library; if not, write to the Free Software
017:         *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
018:         */
019:        package bak.pcj;
020:
021:        /**
022:         *  This interface defines collections of float values.
023:         *
024:         *  @see        java.util.Collection
025:         *
026:         *  @author     Søren Bak
027:         *  @version    1.1     2002/30/12
028:         *  @since      1.0
029:         */
030:        public interface FloatCollection {
031:
032:            /**
033:             *  Adds an element to this collection.
034:             *
035:             *  @param      v
036:             *              the element to add to this collection.
037:             *
038:             *  @return     <tt>true</tt> if this collection was modified
039:             *              as a result of adding <tt>v</tt>; returns
040:             *              <tt>false</tt> otherwise.
041:             *
042:             *  @throws     UnsupportedOperationException
043:             *              if the operation is not supported by this
044:             *              collection.
045:             *
046:             *  @see        #addAll(FloatCollection)
047:             */
048:            boolean add(float v);
049:
050:            /**
051:             *  Adds all the elements of a specified collection to
052:             *  this collection.
053:             *
054:             *  @param      c
055:             *              the collection whose elements to add to this
056:             *              collection.
057:             *
058:             *  @return     <tt>true</tt> if this collection was modified
059:             *              as a result of adding the elements of <tt>c</tt>;
060:             *              returns <tt>false</tt> otherwise.
061:             *
062:             *  @throws     UnsupportedOperationException
063:             *              if the operation is not supported by this
064:             *              collection.
065:             *
066:             *  @throws     NullPointerException
067:             *              if <tt>c</tt> is <tt>null</tt>.
068:             *
069:             *  @see        #add(float)
070:             */
071:            boolean addAll(FloatCollection c);
072:
073:            /**
074:             *  Clears this collection.
075:             *
076:             *  @throws     UnsupportedOperationException
077:             *              if the operation is not supported by this
078:             *              collection.
079:             */
080:            void clear();
081:
082:            /**
083:             *  Indicates whether this collection contains a specified
084:             *  element.
085:             *
086:             *  @param      v
087:             *              the element to test for containment.
088:             *
089:             *  @return     <tt>true</tt> if <tt>v</tt> is contained in this
090:             *              collection; returns <tt>false</tt> otherwise.
091:             *
092:             *  @see        #containsAll(FloatCollection)
093:             */
094:            boolean contains(float v);
095:
096:            /**
097:             *  Indicates whether all elements of a specified
098:             *  collection is contained in this collection.
099:             *
100:             *  @param      c
101:             *              the collection whose elements to test for
102:             *              containment.
103:             *
104:             *  @return     <tt>true</tt> if all the elements of <tt>c</tt>
105:             *              are contained in this collection; returns
106:             *              <tt>false</tt> otherwise.
107:             *
108:             *  @throws     NullPointerException
109:             *              if <tt>c</tt> is <tt>null</tt>.
110:             *
111:             *  @see        #contains(float)
112:             */
113:            boolean containsAll(FloatCollection c);
114:
115:            /**
116:             *  Indicates whether this collection is equal to some object.
117:             *
118:             *  @param      obj
119:             *              the object with which to compare this collection.
120:             *
121:             *  @return     <tt>true</tt> if this collection is equals to
122:             *              <tt>obj</tt>; returns <tt>false</tt> otherwise.
123:             */
124:            boolean equals(Object obj);
125:
126:            /**
127:             *  Returns a hash code value for this collection.
128:             *
129:             *  @return     a hash code value for this collection.
130:             */
131:            int hashCode();
132:
133:            /**
134:             *  Indicates whether this collection is empty.
135:             *
136:             *  @return     <tt>true</tt> if this collection is empty; returns
137:             *              <tt>false</tt> otherwise.
138:             */
139:            boolean isEmpty();
140:
141:            /**
142:             *  Returns an iterator over this collection.
143:             *
144:             *  @return     an iterator over this collection.
145:             */
146:            FloatIterator iterator();
147:
148:            /**
149:             *  Removes a specified element from this collection.
150:             *
151:             *  @param      v
152:             *              the float value to remove from this collection.
153:             *
154:             *  @return     <tt>true</tt> if this collection was modified
155:             *              as a result of removing <tt>v</tt>; returns
156:             *              <tt>false</tt> otherwise.
157:             *
158:             *  @throws     UnsupportedOperationException
159:             *              if the operation is not supported by this
160:             *              collection.
161:             */
162:            boolean remove(float v);
163:
164:            /**
165:             *  Removes all the elements of a specified collection from
166:             *  this collection.
167:             *
168:             *  @param      c
169:             *              the collection whose elements to remove from this
170:             *              collection.
171:             *
172:             *  @return     <tt>true</tt> if this collection was modified
173:             *              as a result of removing the elements of <tt>c</tt>;
174:             *              returns <tt>false</tt> otherwise.
175:             *
176:             *  @throws     UnsupportedOperationException
177:             *              if the operation is not supported by this
178:             *              collection.
179:             *
180:             *  @throws     NullPointerException
181:             *              if <tt>c</tt> is <tt>null</tt>.
182:             */
183:            boolean removeAll(FloatCollection c);
184:
185:            /**
186:             *  Retains only the elements of a specified collection in
187:             *  this collection.
188:             *
189:             *  @param      c
190:             *              the collection whose elements to retain in this
191:             *              collection.
192:             *
193:             *  @return     <tt>true</tt> if this collection was modified
194:             *              as a result of removing the elements not contained
195:             *              in <tt>c</tt>;
196:             *              returns <tt>false</tt> otherwise.
197:             *
198:             *  @throws     UnsupportedOperationException
199:             *              if the operation is not supported by this
200:             *              collection.
201:             *
202:             *  @throws     NullPointerException
203:             *              if <tt>c</tt> is <tt>null</tt>.
204:             */
205:            boolean retainAll(FloatCollection c);
206:
207:            /**
208:             *  Returns the number of elements in this collection.
209:             *
210:             *  @return     the number of elements in this collection.
211:             */
212:            int size();
213:
214:            /**
215:             *  Returns the elements of this collection as an array.
216:             *
217:             *  @return     a new array containing the elements of this
218:             *              collection.
219:             */
220:            float[] toArray();
221:
222:            /**
223:             *  Returns the elements of this collection as an array.
224:             *
225:             *  @param      a
226:             *              an array to fill with the elements of this
227:             *              collection; if <tt>a</tt> is <tt>null</tt> or not
228:             *              big enough to contain all the elements of this
229:             *              collection, an new array is allocated,
230:             *              and <tt>a</tt> is not changed.
231:             *
232:             *  @return     <tt>a</tt>, if <tt>a</tt> has room for all the
233:             *              elements of this collection; otherwise a new
234:             *              array is allocated, filled with the elements of
235:             *              this collection, and returned.
236:             */
237:            float[] toArray(float[] a);
238:
239:            /**
240:             *  Minimizes the memory used by this collection. The exact
241:             *  operation of this method depends on the class implementing it.
242:             *  Implementors may choose to ignore it completely.
243:             */
244:            void trimToSize();
245:
246:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.