TestTable.java revision 3233:b5d08bc0d224
1/*
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24package pkg1;
25
26/**
27 * Testing table in documentation comment. In the generated documentation, it
28 * should be displayed as a regular table and not have any styles that the javadoc
29 * generated tables have.
30 *
31 * <table summary="Summary" border cellpadding=3 cellspacing=1>
32 * <caption>Summary of test table</caption>
33 *  <tr>
34 *    <td></td>
35 *    <td align=center colspan = 2> First Element (Head)</td>
36 *    <td align=center colspan = 2> Last Element (Tail)</td>
37 *  </tr>
38 *  <tr>
39 *    <td></td>
40 *    <td align=center><em>Throws exception</em></td>
41 *    <td align=center><em>Special value</em></td>
42 *    <td align=center><em>Throws exception</em></td>
43 *    <td align=center><em>Special value</em></td>
44 *  </tr>
45 *  <tr>
46 *    <td>Insert</td>
47 *    <td>addFirst(e)</td>
48 *    <td>offerFirst(e)</td>
49 *    <td>addLast(e)</td>
50 *    <td>offerLast(e)</td>
51 *  </tr>
52 *  <tr>
53 *    <td>Remove</td>
54 *    <td>removeFirst()</td>
55 *    <td>pollFirst()</td>
56 *    <td>removeLast()</td>
57 *    <td>pollLast()</td>
58 *  </tr>
59 * </table>
60 */
61public class TestTable
62{
63    /**
64     * Field in Class.
65     */
66    public String field;
67
68    /**
69     * Field constant in Class.
70     */
71    public static final int fieldCnst = 0;
72
73    /**
74     * Method in Class.
75     */
76    public void methodInClass(int i) {}
77
78    /**
79     * Deprecated method in Class.
80     * @deprecated Do not use it.
81     */
82    public void deprMethod() {}
83
84}
85