@Test public void testEquals() throws Exception { Assert.assertTrue(arp.equals(arp)); Assert.assertTrue(arp.equals(arp1)); Assert.assertTrue(arp1.equals(arp2)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ARP other = (ARP) obj; if (fieldValues == null) { if (other.fieldValues != null) { return false; } } else if (!fieldValues.equals(other.fieldValues)) { return false; } return true; }
ARP extends Packet { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ARP other = (ARP) obj; if (fieldValues == null) { if (other.fieldValues != null) { return false; } } else if (!fieldValues.equals(other.fieldValues)) { return false; } return true; } }
ARP extends Packet { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ARP other = (ARP) obj; if (fieldValues == null) { if (other.fieldValues != null) { return false; } } else if (!fieldValues.equals(other.fieldValues)) { return false; } return true; } ARP();  ARP(boolean writeAccess); }
ARP extends Packet { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ARP other = (ARP) obj; if (fieldValues == null) { if (other.fieldValues != null) { return false; } } else if (!fieldValues.equals(other.fieldValues)) { return false; } return true; } ARP();  ARP(boolean writeAccess); short getHardwareType(); short getProtocolType(); byte getHardwareAddressLength(); byte getProtocolAddressLength(); short getOpCode(); byte[] getSenderHardwareAddress(); byte[] getSenderProtocolAddress(); byte[] getTargetHardwareAddress(); ARP setHardwareType(short hardwareType); ARP setProtocolType(short protocolType); ARP setHardwareAddressLength(byte hardwareAddressLength); ARP setProtocolAddressLength(byte protocolAddressLength); ARP setOpCode(short opCode); ARP setSenderHardwareAddress(byte[] senderHardwareAddress); ARP setTargetHardwareAddress(byte[] targetHardwareAddress); ARP setTargetProtocolAddress(byte[] targetProtocolAddress); ARP setSenderProtocolAddress(byte[] senderIP); byte[] getTargetProtocolAddress(); @Override int hashCode(); @Override boolean equals(Object obj); }
ARP extends Packet { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ARP other = (ARP) obj; if (fieldValues == null) { if (other.fieldValues != null) { return false; } } else if (!fieldValues.equals(other.fieldValues)) { return false; } return true; } ARP();  ARP(boolean writeAccess); short getHardwareType(); short getProtocolType(); byte getHardwareAddressLength(); byte getProtocolAddressLength(); short getOpCode(); byte[] getSenderHardwareAddress(); byte[] getSenderProtocolAddress(); byte[] getTargetHardwareAddress(); ARP setHardwareType(short hardwareType); ARP setProtocolType(short protocolType); ARP setHardwareAddressLength(byte hardwareAddressLength); ARP setProtocolAddressLength(byte protocolAddressLength); ARP setOpCode(short opCode); ARP setSenderHardwareAddress(byte[] senderHardwareAddress); ARP setTargetHardwareAddress(byte[] targetHardwareAddress); ARP setTargetProtocolAddress(byte[] targetProtocolAddress); ARP setSenderProtocolAddress(byte[] senderIP); byte[] getTargetProtocolAddress(); @Override int hashCode(); @Override boolean equals(Object obj); static short HW_TYPE_ETHERNET; static short REQUEST; static short REPLY; static short PROTO_TYPE_IP; }