test_class.file: utils/src/test/java/com/cloud/utils/net/IpTest.java
test_class.identifier: IpTest
test_case.body: @Test
      public void testIsSameAddressAs() {
          Assert.assertTrue("1 and one should be considdered the same address", new Ip(1L).isSameAddressAs("0.0.0.1"));
          Assert.assertTrue("zero and 0L should be considdered the same address", new Ip("0.0.0.0").isSameAddressAs(0L));
      }
test_case.class_method_signature: IpTest.testIsSameAddressAs()
test_case.full_signature: @Test public void testIsSameAddressAs()
test_case.identifier: testIsSameAddressAs
test_case.invocations: assertTrue isSameAddressAs assertTrue isSameAddressAs
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsSameAddressAs()
focal_class.declarator: serialVersionUID = SerialVersionUID.Ip
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = SerialVersionUID.Ip;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: ip
focal_class.original_string: long ip;
focal_class.type: long
focal_class.var_name: ip
focal_class.file: utils/src/main/java/com/cloud/utils/net/Ip.java
focal_class.identifier: Ip
focal_class.interfaces: implements Serializable, Comparable<Ip>
focal_class.class_method_signature: Ip.Ip(long ip)
focal_class.full_signature: public  Ip(long ip)
focal_class.identifier: Ip
focal_class.modifiers: public
focal_class.parameters: (long ip)
focal_class.signature:  Ip(long ip)
focal_class.class_method_signature: Ip.Ip(String ip)
focal_class.full_signature: public  Ip(String ip)
focal_class.identifier: Ip
focal_class.modifiers: public
focal_class.parameters: (String ip)
focal_class.signature:  Ip(String ip)
focal_class.class_method_signature: Ip.Ip()
focal_class.full_signature: protected  Ip()
focal_class.identifier: Ip
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  Ip()
focal_class.class_method_signature: Ip.addr()
focal_class.full_signature: public String addr()
focal_class.identifier: addr
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String addr()
focal_class.class_method_signature: Ip.longValue()
focal_class.full_signature: public long longValue()
focal_class.identifier: longValue
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long longValue()
focal_class.class_method_signature: Ip.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Ip.isIp4()
focal_class.full_signature: public boolean isIp4()
focal_class.identifier: isIp4
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isIp4()
focal_class.class_method_signature: Ip.isIp6()
focal_class.full_signature: public boolean isIp6()
focal_class.identifier: isIp6
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isIp6()
focal_class.class_method_signature: Ip.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Ip.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Ip.isSameAddressAs(Object obj)
focal_class.full_signature: public boolean isSameAddressAs(Object obj)
focal_class.identifier: isSameAddressAs
focal_class.modifiers: public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean isSameAddressAs(Object obj)
focal_class.class_method_signature: Ip.compareTo(Ip that)
focal_class.full_signature: @Override public int compareTo(Ip that)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (Ip that)
focal_class.return: int
focal_class.signature: int compareTo(Ip that)
focal_method.body: public boolean isSameAddressAs(Object obj) {
          if (this.equals(obj)) {
              return true;
          } else if (obj instanceof String) {
              return ip == NetUtils.ip2Long((String)obj);
          } else if (obj instanceof Long) {
              return ip == (Long)obj;
          } else {
              return false;
          }
      }
focal_method.class_method_signature: Ip.isSameAddressAs(Object obj)
focal_method.full_signature: public boolean isSameAddressAs(Object obj)
focal_method.identifier: isSameAddressAs
focal_method.invocations: equals ip2Long
focal_method.modifiers: public
focal_method.parameters: (Object obj)
focal_method.return: boolean
focal_method.signature: boolean isSameAddressAs(Object obj)