-
[ Pobierz całość w formacie PDF ]
different custom collection classes. We saw how their libraries extend the basic BitSet capabilities to their
own BitMatrix and BitVector classes. We saw how to use their buffering classes to limit the propagation of
data to an eventual consumer. And, we explored how to use their custom list and map implementations to
work with type-safe collections of primitives.
This ends Part Three of the book. In Appendix A, you'll find an API reference to the standard collection
classes; a class, method, and field index; and a class-level API index. The appendix should serve as a quick
reference to the classes in the Collections Framework.
249
Appendix A: Collections API Reference
This appendix presents information to help you navigate through the classes in the Java Collections
Framework.
Class, Method, and Field Index
Table A-1 provides an index to all the classes, methods, and fields in the Java Collections Framework.
Classes specify which package they are in, while methods and fields specify what classes they belong to. For
detailed information about the classes, methods, and fields, see the chapters that describe them.
Table A-1: Summary of Collection Framework Classes, Methods, and Fields
CLASS/METHOD/FIELD NAME PACKAGE/CLASS FOR CLASS/METHOD/FIELD
A
AbstractCollection java.util
AbstractList java.util
AbstractMap java.util
AbstractSequentialList java.util
AbstractSet java.util
add() AbstractCollection, AbstractList, AbstractSequentialList,
ArrayList, Collection, HashSet, LinkedList, List, ListIterator,
Set, TreeSet, Vector
addAll() AbstractCollection, AbstractList, AbstractSequentialList,
ArrayList, Collection, LinkedList, List, Set, TreeSet, Vector
addElement() Vector
addFirst() LinkedList
addLast() LinkedList
and() BitSet
andNot() BitSet
ArrayList java.util
Arrays java.util
asList() Arrays
B
binarySearch() Arrays, Collections
BitSet java.util
C
capacity() Vector
capacityIncrement Vector
clear() AbstractCollection, AbstractList, AbstractMap, ArrayList,
BitSet, Collection, HashMap, HashSet, Hashtable, LinkedList,
250
Appendix A: Collections API Reference
List, Map, Set, TreeMap, TreeSet, Vector, WeakHashMap
clone() ArrayList, BitSet, HashMap, HashSet, Hashtable, LinkedList,
TreeMap, TreeSet, Vector
Collection java.util
Collections java.util
Comparable java.lang
Comparator java.util
comparator() SortedMap, SortedSet, TreeMap, TreeSet
compare() Comparator
compareTo() Comparable
contains() AbstractCollection, ArrayList, Collection, HashSet, Hashtable,
LinkedList, List, Set, TreeSet, Vector
containsAll() AbstractCollection, Collection, List, Set, Vector
containsKey() AbstractMap, HashMap, Hashtable, Map, TreeMap,
WeakHashMap
containsValue() AbstractMap, HashMap, Hashtable, Map, TreeMap
copy() Collections
copyInto() Vector
D
defaults Properties
Dictionary java.util
E
elementAt() Vector
elementCount Vector
elementData Vector
elements() Dictionary, Hashtable, Vector
empty() Stack
EMPTY_LIST Collections
EMPTY_MAP Collections
EMPTY_SET Collections
ensureCapacity() ArrayList, Vector
entrySet() AbstractMap, HashMap, Hashtable, Map, TreeMap,
WeakHashMap
Enumeration java.util
enumeration() Collections
equals() AbstractList, AbstractMap, AbstractSet, Arrays, BitSet,
Collection, Comparator, Hashtable, List, Map, Map.Entry, Set,
Vector
F
fill() Arrays, Collections
first() SortedSet, TreeSet
firstElement() Vector
251
Appendix A: Collections API Reference
firstKey() SortedMap, TreeMap
G
get() AbstractList, AbstractMap, AbstractSequentialList, ArrayList,
BitSet, Dictionary, HashMap, Hashtable, LinkedList, List,
Map, TreeMap, Vector, WeakHashMap
getFirst() LinkedList
getKey() Map.Entry
getLast() LinkedList
getProperty() Properties
getValue() Map.Entry
H
hashCode() AbstractList, AbstractMap, AbstractSet, BitSet, Collection,
Hashtable, List, Map, Map.Entry, Set, Vector
HashMap java.util
HashSet java.util
Hashtable java.util
hasMoreElements() Enumeration
hasNext() Iterator, ListIterator
hasPrevious() ListIterator
headMap() SortedMap, TreeMap
headSet() SortedSet, TreeSet
I
indexOf() AbstractList, ArrayList, LinkedList List, Vector
insertElementAt() Vector
isEmpty() AbstractCollection, AbstractMap, ArrayList, Collection,
Dictionary, HashMap, HashSet, Hashtable, List, Map, Set, [ Pobierz całość w formacie PDF ] - zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- matkadziecka.xlx.pl