/** * Append human readable strings which represents the contents of this object to the specified * {@link StringBuilder}. * * @param builder A {@link StringBuilder} instance. */ public void appendContents(StringBuilder builder) { long mac = getMacAddress(); short vlan = getVlan(); if (mac != UNDEFINED) { builder.append("addr=").append(VTNManagerImpl.formatMacAddress(mac)).append(','); } builder.append("vlan=").append((int) vlan); }
/** * Return the hash code of this object. * * @return The hash code. */ @Override public int hashCode() { return VTNManagerImpl.hashCode(encodedValue); }