@Test public void testAddressIncr() { IPAddress ipA = new IPAddress("::5"); assertEquals("::6", ipA.incr().toString()); IPAddress ipB = new IPAddress("::ffff:ffff"); assertEquals("::1:0:0", ipB.incr().toString()); IPAddress ipC = new IPAddress("::ff00:ffff"); assertEquals("::ff01:0", ipC.incr().toString()); IPAddress ipD = new IPAddress("::ff00:7fff"); assertEquals("::ff00:8000", ipD.incr().toString()); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Info: "); sb.append("\n\tfirst: "); sb.append(getFirstIPAddress()); sb.append("\n\tlast: "); sb.append(getLastIPAddress()); sb.append("\n\tversion: "); sb.append(getVersion()); sb.append("\n\tcommunity string: "); sb.append(getCommunityString()); sb.append("\n\tport: "); sb.append(String.valueOf(getPort())); sb.append("\n\tretry count: "); sb.append(String.valueOf(getRetryCount())); sb.append("\n\ttimeout: "); sb.append(getTimeout()); return sb.toString(); }
SnmpEventInfo { public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Info: "); sb.append("\n\tfirst: "); sb.append(getFirstIPAddress()); sb.append("\n\tlast: "); sb.append(getLastIPAddress()); sb.append("\n\tversion: "); sb.append(getVersion()); sb.append("\n\tcommunity string: "); sb.append(getCommunityString()); sb.append("\n\tport: "); sb.append(String.valueOf(getPort())); sb.append("\n\tretry count: "); sb.append(String.valueOf(getRetryCount())); sb.append("\n\ttimeout: "); sb.append(getTimeout()); return sb.toString(); } }
SnmpEventInfo { public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Info: "); sb.append("\n\tfirst: "); sb.append(getFirstIPAddress()); sb.append("\n\tlast: "); sb.append(getLastIPAddress()); sb.append("\n\tversion: "); sb.append(getVersion()); sb.append("\n\tcommunity string: "); sb.append(getCommunityString()); sb.append("\n\tport: "); sb.append(String.valueOf(getPort())); sb.append("\n\tretry count: "); sb.append(String.valueOf(getRetryCount())); sb.append("\n\ttimeout: "); sb.append(getTimeout()); return sb.toString(); } SnmpEventInfo();  SnmpEventInfo(Event event); }
SnmpEventInfo { public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Info: "); sb.append("\n\tfirst: "); sb.append(getFirstIPAddress()); sb.append("\n\tlast: "); sb.append(getLastIPAddress()); sb.append("\n\tversion: "); sb.append(getVersion()); sb.append("\n\tcommunity string: "); sb.append(getCommunityString()); sb.append("\n\tport: "); sb.append(String.valueOf(getPort())); sb.append("\n\tretry count: "); sb.append(String.valueOf(getRetryCount())); sb.append("\n\ttimeout: "); sb.append(getTimeout()); return sb.toString(); } SnmpEventInfo();  SnmpEventInfo(Event event); String getCommunityString(); void setCommunityString(String communityString); String getFirstIPAddress(); void setFirstIPAddress(String firstIPAddress); void setFirstIPAddress(InetAddress firstIPAddress); String getLastIPAddress(); void setLastIPAddress(String lastIPAddress); void setLastIPAddress(InetAddress lastIPAddress); Range getRange(); int getRetryCount(); void setRetryCount(int retryCount); int getTimeout(); void setTimeout(int timeout); String getVersion(); void setVersion(String version); int getPort(); void setPort(int port); Definition createDef(); boolean isSpecific(); String toString(); }
SnmpEventInfo { public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Info: "); sb.append("\n\tfirst: "); sb.append(getFirstIPAddress()); sb.append("\n\tlast: "); sb.append(getLastIPAddress()); sb.append("\n\tversion: "); sb.append(getVersion()); sb.append("\n\tcommunity string: "); sb.append(getCommunityString()); sb.append("\n\tport: "); sb.append(String.valueOf(getPort())); sb.append("\n\tretry count: "); sb.append(String.valueOf(getRetryCount())); sb.append("\n\ttimeout: "); sb.append(getTimeout()); return sb.toString(); } SnmpEventInfo();  SnmpEventInfo(Event event); String getCommunityString(); void setCommunityString(String communityString); String getFirstIPAddress(); void setFirstIPAddress(String firstIPAddress); void setFirstIPAddress(InetAddress firstIPAddress); String getLastIPAddress(); void setLastIPAddress(String lastIPAddress); void setLastIPAddress(InetAddress lastIPAddress); Range getRange(); int getRetryCount(); void setRetryCount(int retryCount); int getTimeout(); void setTimeout(int timeout); String getVersion(); void setVersion(String version); int getPort(); void setPort(int port); Definition createDef(); boolean isSpecific(); String toString();  }