@Test public void testEquals() throws Exception { assertThat(lsaHeader.equals(new LsaHeader()), is(true)); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LsaHeader that = (LsaHeader) o; return Objects.equal(age, that.age) && Objects.equal(options, that.options) && Objects.equal(lsType, that.lsType) && Objects.equal(lsSequenceNo, that.lsSequenceNo) && Objects.equal(lsCheckSum, that.lsCheckSum) && Objects.equal(lsPacketLen, that.lsPacketLen) && Objects.equal(linkStateId, that.linkStateId) && Objects.equal(advertisingRouter, that.advertisingRouter); }
LsaHeader implements OspfLsa { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LsaHeader that = (LsaHeader) o; return Objects.equal(age, that.age) && Objects.equal(options, that.options) && Objects.equal(lsType, that.lsType) && Objects.equal(lsSequenceNo, that.lsSequenceNo) && Objects.equal(lsCheckSum, that.lsCheckSum) && Objects.equal(lsPacketLen, that.lsPacketLen) && Objects.equal(linkStateId, that.linkStateId) && Objects.equal(advertisingRouter, that.advertisingRouter); } }
LsaHeader implements OspfLsa { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LsaHeader that = (LsaHeader) o; return Objects.equal(age, that.age) && Objects.equal(options, that.options) && Objects.equal(lsType, that.lsType) && Objects.equal(lsSequenceNo, that.lsSequenceNo) && Objects.equal(lsCheckSum, that.lsCheckSum) && Objects.equal(lsPacketLen, that.lsPacketLen) && Objects.equal(linkStateId, that.linkStateId) && Objects.equal(advertisingRouter, that.advertisingRouter); }  }
LsaHeader implements OspfLsa { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LsaHeader that = (LsaHeader) o; return Objects.equal(age, that.age) && Objects.equal(options, that.options) && Objects.equal(lsType, that.lsType) && Objects.equal(lsSequenceNo, that.lsSequenceNo) && Objects.equal(lsCheckSum, that.lsCheckSum) && Objects.equal(lsPacketLen, that.lsPacketLen) && Objects.equal(linkStateId, that.linkStateId) && Objects.equal(advertisingRouter, that.advertisingRouter); }  int age(); void setAge(int age); int options(); void setOptions(int options); int lsType(); void setLsType(int lsType); String linkStateId(); void setLinkStateId(String linkStateId); Ip4Address advertisingRouter(); void setAdvertisingRouter(Ip4Address advertisingRouter); long lsSequenceNo(); void setLsSequenceNo(long lsSequenceNo); int lsCheckSum(); void setLsCheckSum(int lsCheckSum); int lsPacketLen(); void setLsPacketLen(int lsPacketLen); @Override OspfLsaType getOspfLsaType(); @Override OspfLsa lsaHeader(); byte[] getLsaHeaderAsByteArray(); void populateHeader(LsaHeader lsaHeader); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LsaHeader implements OspfLsa { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LsaHeader that = (LsaHeader) o; return Objects.equal(age, that.age) && Objects.equal(options, that.options) && Objects.equal(lsType, that.lsType) && Objects.equal(lsSequenceNo, that.lsSequenceNo) && Objects.equal(lsCheckSum, that.lsCheckSum) && Objects.equal(lsPacketLen, that.lsPacketLen) && Objects.equal(linkStateId, that.linkStateId) && Objects.equal(advertisingRouter, that.advertisingRouter); }  int age(); void setAge(int age); int options(); void setOptions(int options); int lsType(); void setLsType(int lsType); String linkStateId(); void setLinkStateId(String linkStateId); Ip4Address advertisingRouter(); void setAdvertisingRouter(Ip4Address advertisingRouter); long lsSequenceNo(); void setLsSequenceNo(long lsSequenceNo); int lsCheckSum(); void setLsCheckSum(int lsCheckSum); int lsPacketLen(); void setLsPacketLen(int lsPacketLen); @Override OspfLsaType getOspfLsaType(); @Override OspfLsa lsaHeader(); byte[] getLsaHeaderAsByteArray(); void populateHeader(LsaHeader lsaHeader); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }