changeset 1750:151baf5e19ca

6349921: (enum) Include links from java.lang.Enum to EnumSet and EnumMap Reviewed-by: martin
author darcy
date Tue, 13 Oct 2009 17:34:48 -0700
parents 9d240dbadaa3
children edeb687e2d9a
files src/share/classes/java/lang/Enum.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/Enum.java	Tue Oct 13 14:08:57 2009 -0700
+++ b/src/share/classes/java/lang/Enum.java	Tue Oct 13 17:34:48 2009 -0700
@@ -40,10 +40,17 @@
  * Edition</i>, <a
  * href="http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.9">&sect;8.9</a>.
  *
+ * <p> Note that when using an enumeration type as the type of a set
+ * or as the type of the keys in a map, specialized and efficient
+ * {@linkplain java.util.EnumSet set} and {@linkplain
+ * java.util.EnumMap map} implementations are available.
+ *
  * @param <E> The enum type subclass
  * @author  Josh Bloch
  * @author  Neal Gafter
  * @see     Class#getEnumConstants()
+ * @see     java.util.EnumSet
+ * @see     java.util.EnumMap
  * @since   1.5
  */
 public abstract class Enum<E extends Enum<E>>