@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((value == null) ? 0 : value.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; OFOxmIpv6FlabelVer14 other = (OFOxmIpv6FlabelVer14) obj; if (value == null) { if (other.value != null) return false; } else if (!value.equals(other.value)) return false; return true; }
@Override public OFOxmIpv6Flabel readFrom(ChannelBuffer bb) throws OFParseError { // fixed value property typeLen == 0x80003804L int typeLen = bb.readInt(); if (typeLen != (int) 0x80003804) throw new OFParseError("Wrong typeLen: Expected=0x80003804L(0x80003804L), got=" + typeLen); IPv6FlowLabel value = IPv6FlowLabel.read4Bytes(bb); OFOxmIpv6FlabelVer14 oxmIpv6FlabelVer14 = new OFOxmIpv6FlabelVer14(value); if (logger.isTraceEnabled()) logger.trace("readFrom - read={}", oxmIpv6FlabelVer14); return oxmIpv6FlabelVer14; }