Рефакторинг

This commit is contained in:
serega6531
2020-04-14 22:35:33 +03:00
parent 01a3c0e512
commit d975f425f8
13 changed files with 29 additions and 33 deletions

View File

@@ -7,11 +7,11 @@ import java.util.Map;
@Getter
public class CountersHolder {
private Map<Integer, Integer> servicesPackets;
private Map<Integer, Integer> servicesStreams;
private final Map<Integer, Integer> servicesPackets;
private final Map<Integer, Integer> servicesStreams;
private int totalPackets;
private int totalStreams;
private final int totalPackets;
private final int totalStreams;
public CountersHolder(Map<Integer, Integer> servicesPackets, Map<Integer, Integer> servicesStreams,
int totalPackets, int totalStreams) {

View File

@@ -10,11 +10,11 @@ import java.net.Inet4Address;
@Getter
public class UnfinishedStream {
private Inet4Address firstIp;
private Inet4Address secondIp;
private int firstPort;
private int secondPort;
private Protocol protocol;
private final Inet4Address firstIp;
private final Inet4Address secondIp;
private final int firstPort;
private final int secondPort;
private final Protocol protocol;
@Override
public boolean equals(Object obj) {