test_class.file: tajo-common/src/test/java/org/apache/tajo/common/type/TestIPv4.java
test_class.identifier: TestIPv4
test_case.body: @Test
  	public final void testEqual() throws InvalidAddressException {
  		IPv4 ip1 = new IPv4("163.152.23.1");
  		IPv4 ip2 = new IPv4("163.152.23.2");
  		IPv4 ip3 = new IPv4("163.152.23.1");
  		assertTrue(ip1.equals(ip3));
  		assertFalse(ip1.equals(ip2));
  		IPv4 ip4 = new IPv4("255.255.0.0");
  		assertFalse(ip1.equals(ip4));
  	}
test_case.class_method_signature: TestIPv4.testEqual()
test_case.full_signature: @Test public final void testEqual()
test_case.identifier: testEqual
test_case.invocations: assertTrue equals assertFalse equals assertFalse equals
test_case.modifiers: @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEqual()
focal_class.declarator: ipBytes
focal_class.modifier: private
focal_class.original_string: private byte[] ipBytes;
focal_class.type: byte[]
focal_class.var_name: ipBytes
focal_class.file: tajo-common/src/main/java/org/apache/tajo/common/type/IPv4.java
focal_class.identifier: IPv4
focal_class.interfaces: implements Writable, Comparable<IPv4>
focal_class.class_method_signature: IPv4.getSubnetMask(int len)
focal_class.full_signature: public static IPv4 getSubnetMask(int len)
focal_class.identifier: getSubnetMask
focal_class.modifiers: public static
focal_class.parameters: (int len)
focal_class.return: IPv4
focal_class.signature: IPv4 getSubnetMask(int len)
focal_class.class_method_signature: IPv4.IPv4()
focal_class.full_signature: public  IPv4()
focal_class.identifier: IPv4
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  IPv4()
focal_class.class_method_signature: IPv4.IPv4(byte[] bytes)
focal_class.full_signature: public  IPv4(byte[] bytes)
focal_class.identifier: IPv4
focal_class.modifiers: public
focal_class.parameters: (byte[] bytes)
focal_class.signature:  IPv4(byte[] bytes)
focal_class.class_method_signature: IPv4.IPv4(String ipAddress)
focal_class.full_signature: public  IPv4(String ipAddress)
focal_class.identifier: IPv4
focal_class.modifiers: public
focal_class.parameters: (String ipAddress)
focal_class.signature:  IPv4(String ipAddress)
focal_class.class_method_signature: IPv4.set(String ipAddress)
focal_class.full_signature: public void set(String ipAddress)
focal_class.identifier: set
focal_class.modifiers: public
focal_class.parameters: (String ipAddress)
focal_class.return: void
focal_class.signature: void set(String ipAddress)
focal_class.class_method_signature: IPv4.set(byte[] bytes)
focal_class.full_signature: public void set(byte[] bytes)
focal_class.identifier: set
focal_class.modifiers: public
focal_class.parameters: (byte[] bytes)
focal_class.return: void
focal_class.signature: void set(byte[] bytes)
focal_class.class_method_signature: IPv4.getBytes()
focal_class.full_signature: public byte[] getBytes()
focal_class.identifier: getBytes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getBytes()
focal_class.class_method_signature: IPv4.matchSubnet(String addr)
focal_class.full_signature: public boolean matchSubnet(String addr)
focal_class.identifier: matchSubnet
focal_class.modifiers: public
focal_class.parameters: (String addr)
focal_class.return: boolean
focal_class.signature: boolean matchSubnet(String addr)
focal_class.class_method_signature: IPv4.matchGeoIP(/* country code */)
focal_class.full_signature: public boolean matchGeoIP(/* country code */)
focal_class.identifier: matchGeoIP
focal_class.modifiers: public
focal_class.parameters: (/* country code */)
focal_class.return: boolean
focal_class.signature: boolean matchGeoIP(/* country code */)
focal_class.class_method_signature: IPv4.and(IPv4 other)
focal_class.full_signature: public IPv4 and(IPv4 other)
focal_class.identifier: and
focal_class.modifiers: public
focal_class.parameters: (IPv4 other)
focal_class.return: IPv4
focal_class.signature: IPv4 and(IPv4 other)
focal_class.class_method_signature: IPv4.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: IPv4.compareTo(IPv4 o)
focal_class.full_signature: @Override public int compareTo(IPv4 o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (IPv4 o)
focal_class.return: int
focal_class.signature: int compareTo(IPv4 o)
focal_class.class_method_signature: IPv4.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: IPv4.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: IPv4.readFields(DataInput in)
focal_class.full_signature: @Override public void readFields(DataInput in)
focal_class.identifier: readFields
focal_class.modifiers: @Override public
focal_class.parameters: (DataInput in)
focal_class.return: void
focal_class.signature: void readFields(DataInput in)
focal_class.class_method_signature: IPv4.write(DataOutput out)
focal_class.full_signature: @Override public void write(DataOutput out)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (DataOutput out)
focal_class.return: void
focal_class.signature: void write(DataOutput out)
focal_method.body: @Override
  	public boolean equals(Object o) {
  		if (o instanceof IPv4) {
  			byte[] obytes = ((IPv4)o).getBytes();
  			for (int i = 0; i < 4; i++) {
  				if (this.ipBytes[i] != obytes[i]) {
  					return false;
  				}
  			}
  			return true;
  		}
  		return false;
  	}
focal_method.class_method_signature: IPv4.equals(Object o)
focal_method.full_signature: @Override public boolean equals(Object o)
focal_method.identifier: equals
focal_method.invocations: getBytes
focal_method.modifiers: @Override public
focal_method.parameters: (Object o)
focal_method.return: boolean
focal_method.signature: boolean equals(Object o)