Skip to content

Commit cc8f0ce

Browse files
committed
adding generics syntax to constructor docs for ArrayList and HashMap
1 parent 1fbe2f0 commit cc8f0ce

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

content/api_en/include/ArrayList.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,15 @@ For a list of the numerous <b>ArrayList</b> features, please read the <a href="h
6262
<syntax></syntax>
6363

6464
<constructor>
65-
ArrayList()
66-
ArrayList(<c>initialCapacity</c>)
65+
ArrayList&gt;Type&lt;()
66+
ArrayList&gt;Type&lt;(<c>initialCapacity</c>)
6767
</constructor>
6868

69+
<cparameter>
70+
<clabel>Type</clabel>
71+
<cdescription>Class Name: the data type for the objects to be placed in the ArrayList.</cdescription>
72+
</cparameter>
73+
6974
<cparameter>
7075
<clabel>initialCapacity</clabel>
7176
<cdescription>int: defines the initial capacity of the list; it's empty by default</cdescription>

content/api_en/include/HashMap.xml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,23 @@ For a list of the numerous <b>HashMap</b> features, please read the <a href="htt
4545
<syntax></syntax>
4646

4747
<constructor>
48-
HashMap()
49-
HashMap(<c>initialCapacity</c>)
50-
HashMap(<c>initialCapacity</c>, <c>loadFactor</c>)
51-
HashMap(<c>m</c>)
48+
HashMap&gt;Key, Value&lt;()
49+
HashMap&gt;Key, Value&lt;(<c>initialCapacity</c>)
50+
HashMap&gt;Key, Value&lt;(<c>initialCapacity</c>, <c>loadFactor</c>)
51+
HashMap&gt;Key, Value&lt;(<c>m</c>)
5252
</constructor>
5353

54+
<cparameter>
55+
<clabel>Key</clabel>
56+
<cdescription>Class Name: the data type for the HashMap's keys</cdescription>
57+
</cparameter>
58+
59+
<cparameter>
60+
<clabel>Value</clabel>
61+
<cdescription>Class Name: the data type for the HashMap's values</cdescription>
62+
</cparameter>
63+
64+
5465
<parameter>
5566
<label>initialCapacity</label>
5667
<description>int: defines the initial capacity of the map; the default is 16</description>

0 commit comments

Comments
 (0)