예제 #1
0
파일: MacVlan.java 프로젝트: Ei5enheim/vtn
  /**
   * 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);
  }
예제 #2
0
파일: MacVlan.java 프로젝트: Ei5enheim/vtn
 /**
  * Return the hash code of this object.
  *
  * @return The hash code.
  */
 @Override
 public int hashCode() {
   return VTNManagerImpl.hashCode(encodedValue);
 }