File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
main/java/com/iluwatar/slob
test/java/com/iluwatar/slob Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
## Explanation
18
18
19
- * Forest here represents the object graph.
19
+ * The Forest here represents the object graph.
20
20
* A forest contains animals and plants. As is in real life the forest object contains plants and
21
21
animals
22
22
where some animals eat other animals and some eat only plants.
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ public static void main(String[] args) throws SQLException {
66
66
67
67
/**
68
68
* Creates a Forest with Animals and Plants along with their respective relationships.
69
+ * <p> The method creates a forest with 2 Plants Grass and Oak of type Herb and tree
70
+ * respectively.</p>
71
+ * <p> It also creates 3 animals Zebra and Buffalo which eat the plant grass. Lion consumes the
72
+ * Zebra and the Buffalo.</p>
73
+ * <p>With the above animals and plants and their relationships a forest
74
+ * object is created which represents the Object Graph.</p>
69
75
*
70
76
* @return Forest Object
71
77
*/
Original file line number Diff line number Diff line change 50
50
class AppTest {
51
51
52
52
/**
53
- * Creates a Forest with Animals and Plants along with their respective relationships
53
+ * Creates a Forest with Animals and Plants along with their respective relationships.
54
+ * <p> The method creates a forest with 2 Plants Grass and Oak of type Herb and tree
55
+ * respectively.</p>
56
+ * <p> It also creates 3 animals Zebra and Buffalo which eat the plant grass. Lion consumes the
57
+ * Zebra and the Buffalo.</p>
58
+ * <p>With the above animals and plants and their relationships a forest
59
+ * object is created which represents the Object Graph.</p>
54
60
*
55
61
* @return Forest Object
56
62
*/
You can’t perform that action at this time.
0 commit comments