{"id":131,"date":"2008-03-01T09:28:00","date_gmt":"2008-03-01T09:28:00","guid":{"rendered":"http:\/\/www.tutego.de\/blog\/javainsel\/?p=131"},"modified":"2008-03-01T09:28:00","modified_gmt":"2008-03-01T09:28:00","slug":"thema-der-woche-java-5-und-java-6","status":"publish","type":"post","link":"https:\/\/www.tutego.de\/blog\/javainsel\/2008\/03\/thema-der-woche-java-5-und-java-6\/","title":{"rendered":"Thema der Woche: Java 5 und Java 6"},"content":{"rendered":"<p>Java 5 ist mittlerweile weit verbreitet, und Entwickler sollten auf der einen Seite die neuen Spracheigenschaften kennenlernen, auf der anderen Seite sich mit dem Update der Bibliotheken besch\u00e4ftigen. Als Startlinks gelten:<\/p>\n<ul>\n<li><a title=\"http:\/\/www.tutego.com\/java\/java-1.5-neuigkeiten.htm\" href=\"http:\/\/www.tutego.com\/java\/java-1.5-neuigkeiten.htm\">http:\/\/www.tutego.com\/java\/java-1.5-neuigkeiten.htm<\/a><\/li>\n<li><a title=\"http:\/\/www.tutego.com\/java\/java-6-mustang-news.htm\" href=\"http:\/\/www.tutego.com\/java\/java-6-mustang-news.htm\">http:\/\/www.tutego.com\/java\/java-6-mustang-news.htm<\/a><\/li>\n<\/ul>\n<p>Von jeder neue Klasse und Schnittstelle sollte man zumindest den API-Kopf gelesen haben. Besonderes Augenmerk sollten Entwickler auf Generics legen. Hier gilt hervorzuheben das Tutorial <a title=\"http:\/\/java.sun.com\/j2se\/1.5\/pdf\/generics-tutorial.pdf\" href=\"http:\/\/java.sun.com\/j2se\/1.5\/pdf\/generics-tutorial.pdf\">http:\/\/java.sun.com\/j2se\/1.5\/pdf\/generics-tutorial.pdf<\/a>. Die Begriffe<\/p>\n<ul>\n<li>Generischer Typ<\/li>\n<li>Typparameter<\/li>\n<li>formalter Typparameter<\/li>\n<li>parametrisierter Typ<\/li>\n<li>Typargument<\/li>\n<li>Wildcard-Typ<\/li>\n<li>Bounded Wildcard<\/li>\n<li>upper bound, lower bound<\/li>\n<li>generische Methode<\/li>\n<li>unchecked Warnung<\/li>\n<li>erasure<\/li>\n<li>Wildcard capture<\/li>\n<li>multiple bound<\/li>\n<\/ul>\n<p>solle man sofort einordnen und beschreiben k\u00f6nnen.<\/p>\n<p>Jeder Entwickler sollte insbesondere <strong>alle<\/strong> Anwendungen von Generics bei der Utility-Klasse Collections verstehen:<\/p>\n<ul>\n<li><code>static <\/code><code>&lt;T&gt; boolean <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#addAll%28java.util.Collection,%20T...%29\">addAll<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;? super T&gt; c, T... a)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; int <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#binarySearch%28java.util.List,%20T%29\">binarySearch<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;? extends <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Comparable.html\">Comparable<\/a>&lt;? super T&gt;&gt; list, T key)<\/code><\/li>\n<li><code><\/code><code>st<\/code><code>atic <\/code><code>&lt;T&gt; int <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#binarySearch%28java.util.List,%20T,%20java.util.Comparator%29\">binarySearch<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;? extends T&gt; list, T key, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Comparator.html\">Comparator<\/a>&lt;? super T&gt; c)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;E&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;E&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#checkedCollection%28java.util.Collection,%20java.lang.Class%29\">checkedCollection<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;E&gt; c, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;E&gt; type)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;E&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;E&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#checkedList%28java.util.List,%20java.lang.Class%29\">checkedList<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;E&gt; list, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;E&gt; type)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#checkedMap%28java.util.Map,%20java.lang.Class,%20java.lang.Class%29\">checkedMap<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;K,V&gt; m, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;K&gt; keyType, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;V&gt; valueType)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;E&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;E&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#checkedSet%28java.util.Set,%20java.lang.Class%29\">checkedSet<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;E&gt; s, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;E&gt; type)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedMap.html\">SortedMap<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#checkedSortedMap%28java.util.SortedMap,%20java.lang.Class,%20java.lang.Class%29\">checkedSortedMap<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedMap.html\">SortedMap<\/a>&lt;K,V&gt; m, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;K&gt; keyType, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;V&gt; valueType)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;E&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedSet.html\">SortedSet<\/a>&lt;E&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#checkedSortedSet%28java.util.SortedSet,%20java.lang.Class%29\">checkedSortedSet<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedSet.html\">SortedSet<\/a>&lt;E&gt; s, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Class.html\">Class<\/a>&lt;E&gt; type)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#copy%28java.util.List,%20java.util.List%29\">copy<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;? super T&gt; dest, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;? extends T&gt; src)<\/code><\/li>\n<li><code><\/code><code>static boolean <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#disjoint%28java.util.Collection,%20java.util.Collection%29\">disjoint<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;?&gt; c1, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;?&gt; c2)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#emptyList%28%29\">emptyList<\/a><\/b>()<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#emptyMap%28%29\">emptyMap<\/a><\/b>()<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#emptySet%28%29\">emptySet<\/a><\/b>()<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Enumeration.html\">Enumeration<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#enumeration%28java.util.Collection%29\">enumeration<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;T&gt; c)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#fill%28java.util.List,%20T%29\">fill<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;? super T&gt; list, T obj)<\/code><\/li>\n<li><code><\/code><code>static int <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#frequency%28java.util.Collection,%20java.lang.Object%29\">frequency<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;?&gt; c, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Object.html\">Object<\/a> o)<\/code><\/li>\n<li><code><\/code><code>static int <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#indexOfSubList%28java.util.List,%20java.util.List%29\">indexOfSubList<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; source, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; target)<\/code><\/li>\n<li><code><\/code><code>static int <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#lastIndexOfSubList%28java.util.List,%20java.util.List%29\">lastIndexOfSubList<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; source, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; target)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/ArrayList.html\">ArrayList<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#list%28java.util.Enumeration%29\">list<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Enumeration.html\">Enumeration<\/a>&lt;T&gt; e)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T extends <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Object.html\">Object<\/a> &amp; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Comparable.html\">Comparable<\/a>&lt;? super T&gt;&gt; T <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#max%28java.util.Collection%29\">max<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;? extends T&gt; coll)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; T <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#max%28java.util.Collection,%20java.util.Comparator%29\">max<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;? extends T&gt; coll, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Comparator.html\">Comparator<\/a>&lt;? super T&gt; comp)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T extends <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Object.html\">Object<\/a> &amp; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Comparable.html\">Comparable<\/a>&lt;? super T&gt;&gt; T <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#min%28java.util.Collection%29\">min<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;? extends T&gt; coll)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; T <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#min%28java.util.Collection,%20java.util.Comparator%29\">min<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;? extends T&gt; coll, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Comparator.html\">Comparator<\/a>&lt;? super T&gt; comp)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#nCopies%28int,%20T%29\">nCopies<\/a><\/b>(int n, T o)<\/code><\/li>\n<li><code>static <\/code><code>&lt;T&gt; boolean <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#replaceAll%28java.util.List,%20T,%20T%29\">replaceAll<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; list, T oldVal, T newVal)<\/code><\/li>\n<li><code><\/code><code>static void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#reverse%28java.util.List%29\">reverse<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; list)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Comparator.html\">Comparator<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#reverseOrder%28%29\">reverseOrder<\/a><\/b>()<\/code><\/li>\n<li><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Comparator.html\">Comparator<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#reverseOrder%28java.util.Comparator%29\">reverseOrder<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Comparator.html\">Comparator<\/a>&lt;T&gt; cmp)<\/code><\/li>\n<li><code><\/code><code>static void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#rotate%28java.util.List,%20int%29\">rotate<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; list, int distance)<\/code><\/li>\n<li><code><\/code><code>static void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#shuffle%28java.util.List%29\">shuffle<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; list)<\/code><\/li>\n<li><code><\/code><code>static void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#shuffle%28java.util.List,%20java.util.Random%29\">shuffle<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; list, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Random.html\">Random<\/a> rnd)<\/code><\/li>\n<li><code><\/code><code>static&nbsp; <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#singleton%28T%29\">singleton<\/a><\/b>(T o)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#singletonList%28T%29\">singletonList<\/a><\/b>(T o)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#singletonMap%28K,%20V%29\">singletonMap<\/a><\/b>(K key, V value)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T extends <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/lang\/Comparable.html\">Comparable<\/a>&lt;? super T&gt;&gt;&nbsp; void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#sort%28java.util.List%29\">sort<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; list)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#sort%28java.util.List,%20java.util.Comparator%29\">sort<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; list, <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Comparator.html\">Comparator<\/a>&lt;? super T&gt; c)<\/code><\/li>\n<li><code><\/code><code>static void <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#swap%28java.util.List,%20int,%20int%29\">swap<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;?&gt; list, int i, int j)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#synchronizedCollection%28java.util.Collection%29\">synchronizedCollection<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;T&gt; c)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#synchronizedList%28java.util.List%29\">synchronizedList<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; list)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#synchronizedMap%28java.util.Map%29\">synchronizedMap<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;K,V&gt; m)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#synchronizedSet%28java.util.Set%29\">synchronizedSet<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;T&gt; s) <\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedMap.html\">SortedMap<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#synchronizedSortedMap%28java.util.SortedMap%29\">synchronizedSortedMap<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedMap.html\">SortedMap<\/a>&lt;K,V&gt; m)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedSet.html\">SortedSet<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#synchronizedSortedSet%28java.util.SortedSet%29\">synchronizedSortedSet<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedSet.html\">SortedSet<\/a>&lt;T&gt; s)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#unmodifiableCollection%28java.util.Collection%29\">unmodifiableCollection<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collection.html\">Collection<\/a>&lt;? extends T&gt; c)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#unmodifiableList%28java.util.List%29\">unmodifiableList<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/List.html\">List<\/a>&lt;? extends T&gt; list)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#unmodifiableMap%28java.util.Map%29\">unmodifiableMap<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Map.html\">Map<\/a>&lt;? extends K,? extends V&gt; m)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#unmodifiableSet%28java.util.Set%29\">unmodifiableSet<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Set.html\">Set<\/a>&lt;? extends T&gt; s)<\/code><\/li>\n<li><code>static <\/code><code>&lt;K,V&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedMap.html\">SortedMap<\/a>&lt;K,V&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#unmodifiableSortedMap%28java.util.SortedMap%29\">unmodifiableSortedMap<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedMap.html\">SortedMap<\/a>&lt;K,? extends V&gt; m)<\/code><\/li>\n<li><code><\/code><code>static <\/code><code>&lt;T&gt; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedSet.html\">SortedSet<\/a>&lt;T&gt; <\/code><code><b><a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/Collections.html#unmodifiableSortedSet%28java.util.SortedSet%29\">unmodifiableSortedSet<\/a><\/b>(<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/util\/SortedSet.html\">SortedSet<\/a>&lt;T&gt; s)<\/code><\/li>\n<\/ul>\n<p>PS: Beginne bei &lt;T&gt;\/&lt;E&gt; bzw. &lt;K,V&gt;, dann &lt;?&gt; und dann den restlichen. max\/min sind dann die Generics-&#8222;Bonbons&#8220;.<\/p>\n<p>Wer danach die Nase von Generics immer noch nicht voll hat, beginnt <a title=\"http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html\" href=\"http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html\">http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html<\/a> zu lesen. Das ist die umfangreichste Quelle zu dem Thema im Netz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java 5 ist mittlerweile weit verbreitet, und Entwickler sollten auf der einen Seite die neuen Spracheigenschaften kennenlernen, auf der anderen Seite sich mit dem Update der Bibliotheken besch\u00e4ftigen. Als Startlinks gelten: http:\/\/www.tutego.com\/java\/java-1.5-neuigkeiten.htm http:\/\/www.tutego.com\/java\/java-6-mustang-news.htm Von jeder neue Klasse und Schnittstelle sollte man zumindest den API-Kopf gelesen haben. Besonderes Augenmerk sollten Entwickler auf Generics legen. Hier gilt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[13],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-die-wochentliche-dosis-java"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":0,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}