PortDetection.java 974 Bytes
Newer Older
David Fernandez Lobon's avatar
David Fernandez Lobon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
package adt.mainnode.entity;

public class PortDetection {
    private String time;
    private String ip;
    private int port;
    private int length;

    public PortDetection(String time, String ip, int port, int length) {
        this.time = time;
        this.ip = ip;
        this.port = port;
        this.length = length;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "PortDetection{" +
                "time='" + time + '\'' +
                ", ip='" + ip + '\'' +
                ", port=" + port +
                ", length=" + length + 
                '}';
    }
}