br.com.objectos.dhcp.OfferMessagePojo Maven / Gradle / Ivy
package br.com.objectos.dhcp;
import br.com.objectos.net.HardwareAddress;
import br.com.objectos.net.IpAddress;
import br.com.objectos.net.NetShort;
import br.com.objectos.testable.Equality;
import br.com.objectos.testable.Tester;
import javax.annotation.Generated;
@Generated({
"br.com.objectos.pojo.compiler.PojoCompiler",
"br.com.objectos.pojo.plugin.StandardPojoPropertyAction",
"br.com.objectos.testable.TestablePlugin"
})
final class OfferMessagePojo extends OfferMessage {
private static final Tester ___TESTER___ = Tester.of(OfferMessage.class)
.add("xid", o -> o.xid())
.add("flags", o -> o.flags())
.add("yiaddr", o -> o.yiaddr())
.add("chaddr", o -> o.chaddr())
.add("options", o -> o.options())
.build();
private final TransactionId xid;
private final NetShort flags;
private final IpAddress yiaddr;
private final HardwareAddress chaddr;
private final Options options;
public OfferMessagePojo(OfferMessageBuilderPojo builder) {
super();
xid = builder.___get___xid();
flags = builder.___get___flags();
yiaddr = builder.___get___yiaddr();
chaddr = builder.___get___chaddr();
options = builder.___get___options();
}
@Override
public Equality isEqualTo(Object that) {
return ___TESTER___.test(this, that);
}
@Override
TransactionId xid() {
return xid;
}
@Override
NetShort flags() {
return flags;
}
@Override
IpAddress yiaddr() {
return yiaddr;
}
@Override
HardwareAddress chaddr() {
return chaddr;
}
@Override
Options options() {
return options;
}
}