The mapping between the Java java.util package and the corresponding .NET types is provided in Table F-12. See Chapter 9, for details of these .NET types.
Table F-12. The Java to .NET Mapping for the java.util Package
Java | .NET |
---|---|
AbstractCollection | System.Collections.CollectionsBase |
AbstractList | N/A |
AbstractMap | N/A |
AbstractSequentialList | N/A |
AbstractSet | N/A |
ArrayList | System.Collections.ArrayList |
Arrays | System.Array |
BitSet | N/A |
Calendar | System.Globalization.Calendar |
Collections | N/A |
Currency | System.Globalization.RegionInfo |
Date | System.DateTime |
Dictionary | System.Collections.DictionaryBase |
EventListenerProxy | N/A |
EventObject | System.EventArgs |
GregorianCalendar | System.Globalization.GregorianCalendar |
HashMap | System.Collections.Hashtable |
HashSet | N/A |
Hashtable | System.Collections.Hashtable |
IdentityHashMap | N/A |
LinkedHashMap | N/A |
LinkedHashSet | N/A |
LinkedList | N/A |
ListResourceBundle | System.Resources.ResourceManager |
System.Resources.ResourceSet | |
Locale | System.Globalization.RegionInfo |
System.Globalization.CultureInfo | |
Observable | N/A |
Properties | N/A |
PropertyPermission | N/A |
PropertyResourceBundle | N/A |
Random | System.Random |
ResourceBundle | System.Resources.ResourceManager |
System.Resources.ResourceSet | |
SimpleTimeZone | System.DateTime |
System.Collections.Stack | |
StringTokenizer | N/A(See the Regular Expressions section of Chapter 7 for comparable functionality.) |
Timer | System.Threading.Timer |
System.Timers.Timer | |
TimerTask | System.Threading.TimerCallback |
System.Timers.ElapsedEventHandler | |
TimeZone | System.DateTime |
TreeMap | N/A |
TreeSet | System.Collections.SortedList |
Vector | System.Collections.ArrayList |
WeakHashMap | N/A |