IpV4Host.java
2.46 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package com.yoho.rfid.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Created by sailing on 2017/11/9.
*/
public class IpV4Host {
private String typeA = "A";
private String typeB = "B";
private String typeC = "C";
private int segment1A = 10, segment1B = 172, segment1C = 192;
private int segment1;
private int segment2;
private int segment3;
private int segment4;
private String fullAddress;
private String type;
public String getTypeA() {
return typeA;
}
public String getTypeB() {
return typeB;
}
public String getTypeC() {
return typeC;
}
public int getSegment1A() {
return segment1A;
}
public int getSegment1B() {
return segment1B;
}
public int getSegment1C() {
return segment1C;
}
public int getSegment1() {
return segment1;
}
public void setSegment1(int segment1) {
this.segment1 = segment1;
}
public int getSegment2() {
return segment2;
}
public void setSegment2(int segment2) {
this.segment2 = segment2;
}
public int getSegment3() {
return segment3;
}
public void setSegment3(int segment3) {
this.segment3 = segment3;
}
public int getSegment4() {
return segment4;
}
public void setSegment4(int segment4) {
this.segment4 = segment4;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getFullAddress() {
return fullAddress;
}
public void setFullAddress(String fullAddress) {
this.fullAddress = fullAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this)
.append("typeA", typeA)
.append("typeB", typeB)
.append("typeC", typeC)
.append("segment1A", segment1A)
.append("segment1B", segment1B)
.append("segment1C", segment1C)
.append("segment1", segment1)
.append("segment2", segment2)
.append("segment3", segment3)
.append("segment4", segment4)
.append("fullAddress", fullAddress)
.append("type", type)
.toString();
}
}