Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Collections API


Related Topics

  
  Java Collections API Design FAQ
While the names of the new collections methods do not adhere to the "Beans naming conventions", we believe that they are reasonable, consistent and appropriate to their purpose.
We suspect that the collections APIs will be used quite pervasively, often with multiple method calls on a single line of code, so it is important that the names be short.
Many Collection implementations (including all of the ones provided by the JDK) will have a public clone method, but it would be mistake to require it of all Collections.
www.novell.com /documentation/extendas35/docs/help/java/jdk/guide/collections/designfaq.html   (2445 words)

  
  Collections   (Site not responding. Last check: 2007-10-28)
Collections form the basis of the ObjectStore query facility, which allows you to select those elements of a collection that satisfy a specified condition.
Collections are commonly used to model many-valued attributes, and they can also be used as class extents (which hold all instances of a particular class).
For collections with allow_duplicates behavior, each insertion increases the collection's size by one and increases by one the count (or number of occurrences) of the inserted element in the collection.
www.progress.com /realtime/techsupport/documentation/objectstore/r51/ostore/doc/user1/5_coll.htm   (7419 words)

  
  SRFI 44: Collections
Modifying a collection while enumerating is permitted to cause an error in either the collection modification or in the enumeration, though this behavior is discouraged.
As the case of functionally updating a collection whose structure is updatable only using side-effects can be expensive (due to the worst-case need to clone a large collection), the specifications of all collections are highly encouraged to document the nature of their compatibility and efficiency for both the functional and side-effecting update functions.
Creates a new collection whose type and contents are the same as the collection passed as an operand, but which is distinct enough in storage that the new collection cannot be affected by modifications to the input collection and vice versa.
srfi.schemers.org /srfi-44/srfi-44.html   (7916 words)

  
 Overview of the collections Package
Collections are objects that hold other objects that are accessed, placed, and maintained under some set of rules.
The basic strategy for building a collection package is to force all of these implementations to share common interfaces, so that only the person doing the initial construction of a collection object that will be passed around and used polymorphically has to care about these issues.
However, when you are using a received Immutable Collection as the basis for a very extensive set of update operations (none of which should be applied to the original), it is sometimes more efficient to build an UpdatableCollection, add all of the elements of the received ImmutableCollection to it, and then work off that.
gee.cs.oswego.edu /dl/classes/collections   (4330 words)

  
 Get Familiar with J2SE 5.0 Collections
The first parameter, the collection item type, must be a Java type that corresponds to the generic type specified when the collection was created.
The next parameter provided to the enhanced for loop is the name of the access variable, which holds the value of each collection item as the loop iterates through the collection.
This variable must be declared as a collection type, and it must have a generic type that matches the collection item type.
www.devx.com /Java/Article/29207/1954?pf=true   (1805 words)

  
 Chapter 22: Collections API
Using the full collection API is better since it allows you to think more naturally in terms of sets, lists, and maps, instead of forcing your thinking into one mold.
The new classes in the collections API are not synchronized.
Collections are aggregations of items, whereas maps represent bindings of keys to values.
www.msci.memphis.edu /~simmonsj/c4302/notes/html/chap22.html   (1117 words)

  
 Collections (Java 2 Platform SE 5.0)
Assuming a collection contains no incorrectly typed elements prior to the time a dynamically typesafe view is generated, and that all subsequent access to the collection takes place through the view, it is guaranteed that the collection cannot contain an incorrectly typed element.
For example, suppose a collection is passed to a third-party library and it is imperative that the library code not corrupt the collection by inserting an element of the wrong type.
Note that it is permissible to pass the same collection in both parameters, in which case the method will return true if and only if the collection is empty.
java.sun.com /j2se/1.5.0/docs/api/java/util/Collections.html   (6181 words)

  
 More Essential Classes
A collection (or container) is a single object that groups mulitple objects into a single object.
The Collections API consists of the APIs and a framework.
In JDK 1.2, changes to the Internationalization APIs include the addition of the Input Method Framework and a number of surface changes to the Text package that involved renaming and moving methods and changing the order of method parameters for simplification.
www.cs.cmu.edu /afs/cs.cmu.edu/user/gchen/www/download/java/JavaTutorial/overview/features/essential.html   (309 words)

  
 Modularizing Object Collections With The Collections API
The Collections API in the.NET Framework merits close attention by all.NET developers because of the flexibility it offers for writing applications in.NET.
We can use it to manage groups or collections of similar objects, standardizing the way in which groups of objects are handled by our programs.
In this article, Thiru Thangarathinam takes us through a tour of all the important collection classes by showing us examples, and then goes on to show us how these collection classes can be very useful in the day-to-day work of a developer.
www.asptoday.com /Content.aspx?id=1684   (257 words)

  
 Collections in JDK @ SYS-CON Media   (Site not responding. Last check: 2007-10-28)
A collections API is a unified framework for representing and manipulating collections, allowing them to be manipulated independently of the details of their representation.
The collections framework in Java is used to separate the abstract notion of a collection of data from its data structure via the use of interfaces.
The new JDK collection implementations are unsynchronized (with the exceptions of the Hashtable and Vector classes), but may be synchronized externally with synchronizing wrappers.
www.sys-con.com /read/36033.htm   (2889 words)

  
 [No title]
Another common collection is the associative array, also known as a map, which is organized non-sequentially in unknown order by key/value pairs, and does not need to be permanently fixed in size when created.
A collections framework represents a unified application programming interface for not only representing collections of objects, but also for manipulating them in a consistent manner at a high enough level of abstraction to encourage reusability and good object-oriented design.
Collection provides all the basic operations one might expect for a collection of objects: creation, addition, deletion, and iteration, as well as query and conversion operations.
www.ociweb.com /jnb/archive/jnbNov1999.html   (1832 words)

  
 › Java Lesson 40: An introduction to the Java Collections API
Collections that map a key to an object provide a means of quickly locating the object.
Indicates the behavior of a collection of objects that is unsorted, does not map a key value to an object, and does not allow duplicate objects.
Indicates the behavior of a collection of objects that is ordered, does not map a key value to an object, and does not allow duplicate objects.
javafaq.nu /java-article-print734.html   (1561 words)

  
 Collections (LingPipe API)
Writes the elements in the specified collection into the specified array as strings, beginning with the first position of the array.
The array may be longer than the collection, in which case nothing is done to the remaining members of the array.
If the collection has more elements than the array will fit, only the first elements from the collection are written.
www.alias-i.com /lingpipe/docs/api/com/aliasi/util/Collections.html   (583 words)

  
 FilteredCollection (Supplemental Collections API)
This collection is normally created to decorate an existing, non-empty collection that is independently created and maintained.
However, a collection decorator is often more capable, flexible, robust and simpler to use than an iterator decorator.
If an element of this collection is modified in such a way that the truth value of the filter condition when applied to the element changes, then the size of this collection will change accordingly.
www.spiritedsw.com /collections/docs/api/org/apache/commons/collections/collection/FilteredCollection.html   (432 words)

  
 OHS Spec Documents Page   (Site not responding. Last check: 2007-10-28)
The Jdk1.4 API is a more useful source of information for a developer.
The regexp API is a more useful source of information for a developer.
The Jdk1.1.8 API is a more useful source of information for a developer.
www.eso.org /~uss/ohs/docs/javaDoc.html   (124 words)

  
 Cyrus' Blather : SF/JavaOne, Day 3, Java 1.6 Collections   (Site not responding. Last check: 2007-10-28)
But i don't see why skip-lists are needed in the core collections, but i suppose the fact that Bill Pugh is on the JSR166 expert group might have something to do with it.
I think a balance needs to be struck so that you don't have a collections API with 1000 different collections in it, all subtly different.
The collections interfaces are completely divorced from their implementation (the concrete implementations don't share this trait, but the implementations do).
blogs.msdn.com /cyrusn/archive/2005/06/28/433714.aspx   (1964 words)

  
 ' + pPage + '
The size-related operations allow the byte size and number of elements of the vector to be determined, and the vector size to be increased to a certain capacity or trimmed to the minimum capacity needed.
The Collection interface corresponds to a mathematical bag, which is a collection that allows duplicate objects.
The iterator() method of the Collection object is used to obtain an Iterator object for the collection.
www.fortunecity.com /skyscraper/capacity/1032/ch11.htm   (9350 words)

  
 Collections in JDK @ XML JOURNAL   (Site not responding. Last check: 2007-10-28)
A collections API is a unified framework for representing and manipulating collections, allowing them to be manipulated independently of the details of their representation.
The collections framework in Java is used to separate the abstract notion of a collection of data from its data structure via the use of interfaces.
Less effort in learning new APIs: If two applications exchange a list of objects, the lists can manipulate each other even if they are populated with their application-specific data objects since they both conform to the same API for manipulating lists.
xml.sys-con.com /read/36033.htm   (3250 words)

  
 Working with collections
A collection (sometimes called a container) is an object that groups multiple elements into a single unit.
Collections are used to store, retrieve and manipulate data, and to transmit data from one method to another.
Collections typically represent data items that form a natural group, like an order (a collection of order lines), a mail folder (a collection of messages), or a telephone directory (a collection of name/phone-number pairs).
www.cs.bham.ac.uk /~mdr/teaching/RedHotChilli/Collections.html   (678 words)

  
 Changed Features
As previously announced, a small number of methods in the Metaobject Protocol (MOP) API are redundant and use of these methods is obsolete.
In earlier versions of ObjectStore, the recommended way to create collections and collections subtypes, such as arrays and bags, was to call the os_collection::create() function.
Otherwise, cursor behavior and APIs in Release 6.0 are the same as cursor behavior and APIs in Release 5.1.
wwwipd.ira.uka.de /~dbprak/Doc/ObjectStore/ostore/doc/rnotes/chap2.htm   (3361 words)

  
 Designing Better Java Collections
I must say that it does seem like something of a copout to simply say "use the smalltalk collections api" as it implies that the software engineering community hasn't learned anything new about collections in the last 20 years.
Take a look at http://citeseer.nj.nec.com/fl02applying.html for a similar refactoring of the smalltalk collections API using traits that eliminates large amounts of duplication.
Fundamentally the collections hierarchy problem is not single-rooted and can't be solved through inheritance alone.
c2.com /cgi/wiki?DesigningBetterJavaCollections   (1717 words)

  
 System.Collections
Represents a collection of key-and-value pairs that are organized based on the hash code of the key.
Represents a collection of key-and-value pairs that are sorted by the keys and are accessible by key and by index.
Represents a collection of objects that can be individually accessed by index.
msdn.microsoft.com /library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcollections.asp   (267 words)

  
 Manageability - Open Source Java Collections API Extensions
PCJ - Primitive Collections for Java (PCJ) is a set of collection classes for primitive data types in Java.
It provides a set of collections, iterators and algorithms which augment and work seamlessly with the JDK Collections API to provide advanced data management capabilities.
For primitive int values in a type-specific collection the performance increase is much greater, to almost 4 times that for the Integers in a standard IntArray.
www.manageability.org /blog/stuff/open-source-java-data-structures-and-algorithms/view   (1139 words)

  
 [jdom-interest] getChild() vs. getChildElements()
In the context of the Collections API the word > "Element" more closely maps to the word "Child" in an XML context.
However (again), in the Collections API, it is add(Object) whie in JDOM you can only add specific types.
That said, I suggested a while back (during the great change debate) that addXXX could be shortened to just "add" and overloaded to add the farious types that were allowed.
www.jdom.org /pipermail/jdom-interest/2000-August/000983.html   (329 words)

  
 jGuru: Collections FAQ Home Page
Synchronized operations are costly and if you aren't modifying a collection much, it is best not to synchronize all collection accesses.
The Collections class provides a method which returns the number of times an Object appears within a given Collection.
Unmodifiable Collections can be easily created using various static methods which the Collections class provides.
www.jguru.com /faq/Collections   (540 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.