@Test public void testToString() { assertThat(stats1.toString(), is(stats1.toString())); }
@Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("ip", ipAddress) .add("timestamp", timestamp) .add("lease", leasePeriod) .add("assignmentStatus", assignmentStatus) .add("subnetMask", subnetMask) .add("broadcast", broadcast) .add("dhcpServer", dhcpServer) .add("routerAddress", routerAddress) .add("domainServer", domainServer) .toString(); }
IpAssignment { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("ip", ipAddress) .add("timestamp", timestamp) .add("lease", leasePeriod) .add("assignmentStatus", assignmentStatus) .add("subnetMask", subnetMask) .add("broadcast", broadcast) .add("dhcpServer", dhcpServer) .add("routerAddress", routerAddress) .add("domainServer", domainServer) .toString(); } }
IpAssignment { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("ip", ipAddress) .add("timestamp", timestamp) .add("lease", leasePeriod) .add("assignmentStatus", assignmentStatus) .add("subnetMask", subnetMask) .add("broadcast", broadcast) .add("dhcpServer", dhcpServer) .add("routerAddress", routerAddress) .add("domainServer", domainServer) .toString(); } private  IpAssignment(Ip4Address ipAddress,
                         long leasePeriod,
                         Date timestamp,
                         AssignmentStatus assignmentStatus,
                         Ip4Address subnetMask,
                         Ip4Address broadcast,
                         Ip4Address dhcpServer,
                         Ip4Address routerAddress,
                         Ip4Address domainServer); }
IpAssignment { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("ip", ipAddress) .add("timestamp", timestamp) .add("lease", leasePeriod) .add("assignmentStatus", assignmentStatus) .add("subnetMask", subnetMask) .add("broadcast", broadcast) .add("dhcpServer", dhcpServer) .add("routerAddress", routerAddress) .add("domainServer", domainServer) .toString(); } private  IpAssignment(Ip4Address ipAddress,
                         long leasePeriod,
                         Date timestamp,
                         AssignmentStatus assignmentStatus,
                         Ip4Address subnetMask,
                         Ip4Address broadcast,
                         Ip4Address dhcpServer,
                         Ip4Address routerAddress,
                         Ip4Address domainServer); Ip4Address ipAddress(); Date timestamp(); AssignmentStatus assignmentStatus(); int leasePeriod(); int leasePeriodMs(); Ip4Address subnetMask(); Ip4Address broadcast(); Ip4Address dhcpServer(); Ip4Address routerAddress(); Ip4Address domainServer(); @Override String toString(); static Builder builder(); static Builder builder(IpAssignment assignment); }
IpAssignment { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .add("ip", ipAddress) .add("timestamp", timestamp) .add("lease", leasePeriod) .add("assignmentStatus", assignmentStatus) .add("subnetMask", subnetMask) .add("broadcast", broadcast) .add("dhcpServer", dhcpServer) .add("routerAddress", routerAddress) .add("domainServer", domainServer) .toString(); } private  IpAssignment(Ip4Address ipAddress,
                         long leasePeriod,
                         Date timestamp,
                         AssignmentStatus assignmentStatus,
                         Ip4Address subnetMask,
                         Ip4Address broadcast,
                         Ip4Address dhcpServer,
                         Ip4Address routerAddress,
                         Ip4Address domainServer); Ip4Address ipAddress(); Date timestamp(); AssignmentStatus assignmentStatus(); int leasePeriod(); int leasePeriodMs(); Ip4Address subnetMask(); Ip4Address broadcast(); Ip4Address dhcpServer(); Ip4Address routerAddress(); Ip4Address domainServer(); @Override String toString(); static Builder builder(); static Builder builder(IpAssignment assignment);  }