Behavioral.Iterator.Client.getBucket()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 3
rs 10
1
/*
2
 * @author  : Jagepard <[email protected]>
3
 * @license https://mit-license.org/ MIT
4
 */
5
6
package Behavioral.Iterator;
7
8
import java.util.ArrayList;
9
import java.util.List;
10
11
public class Client implements ClientInterface {
12
13
    private final List<ItemInterface> bucket = new ArrayList<>();
14
15
    @Override
16
    public List<ItemInterface> getBucket() {
17
        return this.bucket;
18
    }
19
20
    @Override
21
    public void addItemToTheBucket(ItemInterface item){
22
        this.bucket.add(item);
23
    }
24
}
25