@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((value == null) ? 0 : value.hashCode()); result = prime * result + ((mask == null) ? 0 : mask.hashCode()); return result; }
@Override public OFOxmBsnL3InterfaceClassIdMasked readFrom(ChannelBuffer bb) throws OFParseError { // fixed value property typeLen == 0x30908L int typeLen = bb.readInt(); if (typeLen != 0x30908) throw new OFParseError("Wrong typeLen: Expected=0x30908L(0x30908L), got=" + typeLen); ClassId value = ClassId.read4Bytes(bb); ClassId mask = ClassId.read4Bytes(bb); OFOxmBsnL3InterfaceClassIdMaskedVer12 oxmBsnL3InterfaceClassIdMaskedVer12 = new OFOxmBsnL3InterfaceClassIdMaskedVer12(value, mask); if (logger.isTraceEnabled()) logger.trace("readFrom - read={}", oxmBsnL3InterfaceClassIdMaskedVer12); return oxmBsnL3InterfaceClassIdMaskedVer12; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; OFOxmBsnL3InterfaceClassIdMaskedVer12 other = (OFOxmBsnL3InterfaceClassIdMaskedVer12) obj; if (value == null) { if (other.value != null) return false; } else if (!value.equals(other.value)) return false; if (mask == null) { if (other.mask != null) return false; } else if (!mask.equals(other.mask)) return false; return true; }
@Override public OFOxmBsnL3InterfaceClassId readFrom(ByteBuf bb) throws OFParseError { // fixed value property typeLen == 0x30804L int typeLen = bb.readInt(); if (typeLen != 0x30804) throw new OFParseError("Wrong typeLen: Expected=0x30804L(0x30804L), got=" + typeLen); ClassId value = ClassId.read4Bytes(bb); OFOxmBsnL3InterfaceClassIdVer13 oxmBsnL3InterfaceClassIdVer13 = new OFOxmBsnL3InterfaceClassIdVer13(value); if (logger.isTraceEnabled()) logger.trace("readFrom - read={}", oxmBsnL3InterfaceClassIdVer13); return oxmBsnL3InterfaceClassIdVer13; }