The Commons project understands that there are many common algorithms implementations and tools Jarkata project groups in the Java project, which can be implemented in project use in project use, without having to write tool classes such as Stringutil or DateHelper. Many algorithms don't have to check the document, stay all night, :) Recently I need to make some extensions for Collection, I wrote it for a long time, I found that the Commons-Collection has been implemented and better, efficient than yourself. To study this project, because many open source projects also use it to see the open source project code, the first package is based on JDK1.2 development, so it will not care when they are called. JDK version of the question 2 This package is used in most open source projects, which has become an in fact industry collection class processing standard feature description BAG collection interface, which is used to save a number of copied buffer interfaces of an object in a collection. Processing FIFO et al. Defines the combined bidimap interface for removal order, used to find key mapiterator via Value, this is not to say more, do not use map.keyset.iterator to process the MAP loop to check the decoration, actually You can create a set class with a specified type, such as a integer List, you can't put String to this list, otherwise you will throw an abnormal conversion modification, you can put an object when you put an object to a collection. Converting the type of object that needs to be placed in a collection combination collection, a very good concept is to use multiple collections as a collection of sorting MAP and SET, keep a collection of adding order Identity Map, this map is used in this map == Instead of equal () methods to compare objects
* Reference Map That Allows Keys and / or Values To Be Garbage Collected Under Close Control For more iterative implementations to replace array or enumeration types into a collection class, very easy to use, after all, Array features Limited * uTILITIES TO TEST or CREATE TYPICAL SET-Test OR CREATE TYPICAL SET-THEORY Properties of Collections Such As Union, Intersection, And Closure
Individuals are the first thing for some classes is TypedList (as if Map, SET is the same), you can create a string list, or a list that can only be placed in the specified class, avoiding the misunderstanding Java programming idea for programming. The problem of creating a collection of specified types, but use this class without having to be so troublesome.
CollectionUtils For collection and / / judge whether or not to find / equal to the number of items in a collection (or filtering) a collection (or filtering) a subset of a set in a collection, or calculating the number of objects in the collection Conversion Processing Provides an array or enumeration object in a collection of index, size, get, etc. to provide a set of synchronous modifications for all set clauses, such as HashMap itself, is not supported, but this class provides a synchronization After modification, use the modified HashMap without considering the problem that provides the tool method that prohibits the collection of modified sets, like the COLLECTIONUTILS, and the other tool classes of the tool classes these tool classes are basically in CollectionUtils ArrayStack. A STACK inherited from ArrayList Beanmap A Map container for analyzing Javabean. Personally feel that it is easy to test because the BeanUtils class can do this class. This class is convenient to read all attributes and display bidimap is a Finding the MAP Limits of Key by Value: When you add an object, Value can't be the same because there is another method to create a reverse map, use the value as a key, and create a map of the Map BoundedCollection interface for this interface. Both are limited to the set size, but the size of the BUFFER interface exceeds the constraint is very good interface, which implements the object to remove objects in the specified order can be used to implement FIFO. Algorithms such as LIFO can also be constructed by comprator, specifying the determinated removal algorithm ordered ** interface to implement a collection of coliCate interface (assertions) Used to verify or filter object Transformer interface to convert an object to another one The Closure interface is used to enclose a piece of code. For the object to process the UNMODIFIABLE interface, the object (or included) the objects of this interface cannot be changed.