br.com.objectos.rio.dhcp.TestingConfiguredAdapter Maven / Gradle / Ivy
package br.com.objectos.rio.dhcp;
import br.com.objectos.rio.net.HardwareAddress;
import br.com.objectos.rio.net.IpAddress;
import br.com.objectos.rio.net.NetInteger;
import br.com.objectos.way.testable.Equality;
import br.com.objectos.way.testable.Testable;
import br.com.objectos.way.testable.Tester;
import javax.annotation.Generated;
@Generated("br.com.objectos.way.pojo.PackagePojoCompiler")
final class TestingConfiguredAdapter extends ConfiguredAdapter implements Testable {
private static final Tester ___TESTER___ = Tester.of(ConfiguredAdapter.class)
.add("hardwareAddress", o -> o.hardwareAddress())
.add("domainNameServer", o -> o.domainNameServer())
.add("ipAddress", o -> o.ipAddress())
.add("leaseTime", o -> o.leaseTime())
.add("subnetMask", o -> o.subnetMask())
.add("router", o -> o.router())
.add("serverId", o -> o.serverId())
.build();
private final HardwareAddress hardwareAddress;
private final IpAddress.Array domainNameServer;
private final IpAddress ipAddress;
private final NetInteger leaseTime;
private final IpAddress subnetMask;
private final IpAddress.Array router;
private final IpAddress serverId;
public TestingConfiguredAdapter(HardwareAddress hardwareAddress, IpAddress.Array domainNameServer, IpAddress ipAddress, NetInteger leaseTime, IpAddress subnetMask, IpAddress.Array router, IpAddress serverId) {
super();
this.hardwareAddress = hardwareAddress;
this.domainNameServer = domainNameServer;
this.ipAddress = ipAddress;
this.leaseTime = leaseTime;
this.subnetMask = subnetMask;
this.router = router;
this.serverId = serverId;
}
@Override
public Equality isEqualTo(Object that) {
return ___TESTER___.test(this, that);
}
@Override
public HardwareAddress hardwareAddress() {
return hardwareAddress;
}
@Override
public IpAddress.Array domainNameServer() {
return domainNameServer;
}
@Override
public IpAddress ipAddress() {
return ipAddress;
}
@Override
public NetInteger leaseTime() {
return leaseTime;
}
@Override
public IpAddress subnetMask() {
return subnetMask;
}
@Override
public IpAddress.Array router() {
return router;
}
@Override
public IpAddress serverId() {
return serverId;
}
}