fr.quatrevieux.araknemu.data.world.entity.item.ItemSet   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 21
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A bonus() 0 2 1
A name() 0 2 1
A id() 0 2 1
A ItemSet(int,String,List) 0 4 1
1
/*
2
 * This file is part of Araknemu.
3
 *
4
 * Araknemu is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU Lesser General Public License as published by
6
 * the Free Software Foundation, either version 3 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * Araknemu is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public License
15
 * along with Araknemu.  If not, see <https://www.gnu.org/licenses/>.
16
 *
17
 * Copyright (c) 2017-2019 Vincent Quatrevieux
18
 */
19
20
package fr.quatrevieux.araknemu.data.world.entity.item;
21
22
import fr.quatrevieux.araknemu.data.value.ItemTemplateEffectEntry;
23
24
import java.util.List;
25
26
/**
27
 * Entity for item sets
28
 */
29
public final class ItemSet {
30
    private final int id;
31
    private final String name;
32
    private final List<List<ItemTemplateEffectEntry>> bonus;
33
34 1
    public ItemSet(int id, String name, List<List<ItemTemplateEffectEntry>> bonus) {
35 1
        this.id = id;
36 1
        this.name = name;
37 1
        this.bonus = bonus;
38 1
    }
39
40
    public int id() {
41 1
        return id;
42
    }
43
44
    public String name() {
45 1
        return name;
46
    }
47
48
    public List<List<ItemTemplateEffectEntry>> bonus() {
49 1
        return bonus;
50
    }
51
}
52