Channels ▼
RSS

Reflection


Java Solutions August 2001/import java.*/Listing 5

Listing 5: Output from Listing 4 (using java.util.TreeMap)

package java.util;

public class java.util.TreeMap
   extends java.util.AbstractMap
   implements java.util.SortedMap
   implements java.lang.Cloneable
   implements java.io.Serializable
{
   // Fields
   private java.util.Comparator comparator;
   private transient java.util.TreeMap$Entry root;
   ...
   private static final boolean RED;
   private static final boolean BLACK;
   private static final long serialVersionUID;

   // Constructors
   public java.util.TreeMap(java.util.Map);
   public java.util.TreeMap();
   public java.util.TreeMap(java.util.Comparator);
   public java.util.TreeMap(java.util.SortedMap);

   // Methods
   public java.lang.Object put(java.lang.Object, java.lang.Object);
   public java.lang.Object clone();
   public java.lang.Object get(java.lang.Object);
   private int compare(java.lang.Object, java.lang.Object);
   ...
   static int access$1400(java.util.TreeMap);

   // Nested Classes
   static class java.util.TreeMap$Entry
      extends java.lang.Object
      implements java.util.Map$Entry
   {
      // Fields
      java.lang.Object key;
      ...
      boolean color;

      // Constructors
      ...

      // Methods
      public int hashCode();
      ...
      public java.lang.Object setValue(java.lang.Object);

   }
   private class java.util.TreeMap$Iterator
      extends java.lang.Object
      implements java.util.Iterator
   {
      // Fields
      private int type;
      ...
      private final java.util.TreeMap this$0;

      // Constructors
      ...
      java.util.TreeMap$Iterator(java.util.TreeMap, int);

      // Methods
      public java.lang.Object next();
      public void remove();
      public boolean hasNext();
 
   }
   private class java.util.TreeMap$SubMap
      extends java.util.AbstractMap
      implements java.util.SortedMap
      implements java.io.Serializable
   {
      // Fields
      private static final long serialVersionUID;
      ...
      private final java.util.TreeMap this$0;

      // Constructors
      ...

      // Methods
      public java.lang.Object put(java.lang.Object, java.lang.Object);
      ...
      static java.lang.Object access$1900(java.util.TreeMap$SubMap);

      // Nested Classes
      private class java.util.TreeMap$SubMap$EntrySetView
         extends java.util.AbstractSet
      {
         // Fields
         private transient int size;
         private transient int sizeModCount;
         private final java.util.TreeMap$SubMap this$1;

         // Constructors
         ...


         // Methods
         public int size();
         public boolean contains(java.lang.Object);
         public boolean remove(java.lang.Object);
         public boolean isEmpty();
         public java.util.Iterator iterator();

      }
   }
}
— End of Listing —

Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 

Video