@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 boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; OFOxmBsnVxlanNetworkIdMaskedVer14 other = (OFOxmBsnVxlanNetworkIdMaskedVer14) 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 OFOxmBsnVxlanNetworkIdMasked readFrom(ByteBuf bb) throws OFParseError { // fixed value property typeLen == 0x32b08L int typeLen = bb.readInt(); if (typeLen != 0x32b08) throw new OFParseError("Wrong typeLen: Expected=0x32b08L(0x32b08L), got=" + typeLen); VxlanNI value = VxlanNI.read4Bytes(bb); VxlanNI mask = VxlanNI.read4Bytes(bb); OFOxmBsnVxlanNetworkIdMaskedVer14 oxmBsnVxlanNetworkIdMaskedVer14 = new OFOxmBsnVxlanNetworkIdMaskedVer14(value, mask); if (logger.isTraceEnabled()) logger.trace("readFrom - read={}", oxmBsnVxlanNetworkIdMaskedVer14); return oxmBsnVxlanNetworkIdMaskedVer14; }