-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayList.ctxt
More file actions
46 lines (46 loc) · 3.82 KB
/
ArrayList.ctxt
File metadata and controls
46 lines (46 loc) · 3.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#BlueJ class context
comment0.target=ArrayList
comment0.text=\n\ Write\ a\ description\ of\ class\ Quack\ here.\n\n\ @author\n\ @version\n
comment1.params=newData
comment1.target=void\ append(java.lang.Object)
comment1.text=\n\ This\ method\ adds\ the\ param\ element\ to\ the\ end\ of\ the\ list\n\ pre\:\ none,\ but\ makes\ no\ sense\ to\ add\ null\ data\n\ post\:\ adds\ another\ node\ to\ the\ linked\ list\ at\ the\ end.\ the\ definition\ of\ end\ is\ simply\n\ the\ last\ node\ in\ a\ chain\ of\ nodes.\n
comment10.params=front
comment10.target=int\ sizeHelper(ArrayList.Node)
comment10.text=\n\ Private\ helper\ method\ to\ recursively\ find\ the\ length\ /\ size\ of\ the\ linked\ list\n
comment11.params=
comment11.target=java.lang.String\ toString()
comment11.text=\n\ This\ method\ returns\ a\ string\ with\ all\ of\ the\ data\ values\ of\ the\ nodes\n\ pre\:\ none\n\ post\:\ returns\ type\ String\ with\ the\ data\ values\ of\ the\ nodes.\n
comment12.params=
comment12.target=boolean\ isEmpty()
comment12.text=\n\ This\ method\ checks\ if\ the\ first\ node\ is\ null\ or\ not\ which\ means\ if\ it\ is\ empty\ or\ not\n\ pre\:\ none\n\ post\:\ returns\ type\ boolean\ indicating\ if\ it\ is\ empty\n
comment13.params=target
comment13.target=int\ indexOf(java.lang.Object)
comment13.text=\n\ Returns\ the\ index\ of\ an\ object\ in\ the\ linked\ list,\ and\ returns\ -1\ if\ it\ does\ not\ exist\n\ pre\:\ object\ type\ param\ indicating\ the\ element\ you\ want\ the\ index\ of\n\ post\:\ returns\ with\ int\ of\ either\ the\ index\ number\ or\ -1\ (not\ found)\n
comment14.params=other
comment14.target=boolean\ equals(java.lang.Object)
comment14.text=\n\ Override\ this\ method\n\ -\ I\ am\ pretty\ sure\ that\ wh\n\ This\ method\ should\ determine\ whether\ two\ of\ the\ same\ class\ type\ objects\ are\ the\ same.\n
comment2.params=newData
comment2.target=void\ add(java.lang.Object)
comment2.text=\n\ This\ method\ adds\ the\ param\ element\ to\ the\ end\ of\ the\ list\n\ pre\:\ none,\ but\ makes\ no\ sense\ to\ add\ null\ data\n\ post\:\ adds\ another\ node\ to\ the\ linked\ list\ at\ the\ end.\ the\ definition\ of\ end\ is\ simply\n\ the\ last\ node\ in\ a\ chain\ of\ nodes.\n
comment3.params=index
comment3.target=java.lang.Object\ remove(int)
comment3.text=\n\ this\ method\ removes\ an\ element\ at\ a\ spesificied\ index.\n\ pre\:\ none\n\ post\:\ returns\ type\ objecty\ with\ the\ object\ removed\ from\ the\ param\ index.\n
comment4.params=newData\ index
comment4.target=void\ insert(java.lang.Object,\ int)
comment4.text=\n\ This\ method\ adds\ another\ element\ at\ the\ specified\ index\ and\ everything\ is\ moved\ accordingly\n\ pre\:\ Object\ and\ int\ param\ respectively.\n\ post\:\ adds\ a\ new\ node\ at\ the\ specified\ index\ linking\ the\ following\ nodes\ to\ the\ new\ one.\n
comment5.params=index
comment5.target=void\ delete(int)
comment5.text=\n\ This\ method\ deletes\ the\ element\ at\ the\ specified\ index.\n\ pre\:\ type\ int\ param\n\ post\:\ deletes\ the\ element\ at\ the\ param.\n
comment6.params=
comment6.target=void\ clear()
comment6.text=\n\ this\ method\ clears\ the\ array.\n\ pre\:\ none\n\ post\:\ the\ array\ is\ now\ empty,\ it\ is\ null.\n
comment7.params=index
comment7.target=java.lang.Object\ get(int)
comment7.text=\n\ This\ method\ returns\ the\ element\ at\ the\ specified\ index\n\ pre\:\ type\ int\ param\n\ post\:\ returns\ type\ Object\ with\ the\ element\ at\ the\ index\n
comment8.params=front\ index
comment8.target=ArrayList.Node\ getHelper(ArrayList.Node,\ int)
comment8.text=\n\ Helper\ method\ that\ gets\ the\ node\ at\ the\ index\ value\ and\ returns\ that\ node.\n
comment9.params=
comment9.target=int\ size()
comment9.text=\n\ This\ method\ returns\ the\ size\ of\ the\ linked\ list\ recursively\ using\ a\ helper\ method\n\ pre\:\ none\n\ post\:\ returns\ type\ int\ with\ the\ number\ of\ nodes.\n
numComments=15