IpV4Host.java 2.46 KB
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();
    }
}