Behavioral.Iterator.Item   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 2 1
A getDescription() 0 2 1
A getPrice() 0 2 1
A Item(String,int,String) 0 4 1
1
/*
2
 * @author  : Jagepard <[email protected]>
3
 * @license https://mit-license.org/ MIT
4
 */
5
6
package Behavioral.Iterator;
7
8
public class Item implements ItemInterface{
9
10
    private final String name;
11
    private final int    price;
12
    private final String description;
13
14
    public Item(String name, int price, String description) {
15
        this.name        = name;
16
        this.price       = price;
17
        this.description = description;
18
    }
19
20
    public String getName() {
21
        return name;
22
    }
23
24
    public int getPrice() {
25
        return price;
26
    }
27
28
    public String getDescription() {
29
        return description;
30
    }
31
}
32