test_class.declarator: KEY_ARRAY_1 = new byte[20]
test_class.modifier: private static final
test_class.original_string: private static final byte[] KEY_ARRAY_1 = new byte[20];
test_class.type: byte[]
test_class.var_name: KEY_ARRAY_1
test_class.declarator: KEY_ARRAY_2 = new byte[20]
test_class.modifier: private static final
test_class.original_string: private static final byte[] KEY_ARRAY_2 = new byte[20];
test_class.type: byte[]
test_class.var_name: KEY_ARRAY_2
test_class.file: flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobKeyTest.java
test_class.identifier: BlobKeyTest
test_case.body: @Test
  	public void testCompares() {
  		final BlobKey k1 = new BlobKey(KEY_ARRAY_1);
  		final BlobKey k2 = new BlobKey(KEY_ARRAY_1);
  		final BlobKey k3 = new BlobKey(KEY_ARRAY_2);
  		assertTrue(k1.compareTo(k2) == 0);
  		assertTrue(k1.compareTo(k3) < 0);
  	}
test_case.class_method_signature: BlobKeyTest.testCompares()
test_case.full_signature: @Test public void testCompares()
test_case.identifier: testCompares
test_case.invocations: assertTrue compareTo assertTrue compareTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompares()
focal_class.declarator: serialVersionUID = 3847117712521785209L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 3847117712521785209L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: HEX_ARRAY = "0123456789abcdef".toCharArray()
focal_class.modifier: private static final
focal_class.original_string: private static final char[] HEX_ARRAY = "0123456789abcdef".toCharArray();
focal_class.type: char[]
focal_class.var_name: HEX_ARRAY
focal_class.declarator: SIZE = 20
focal_class.modifier: private static final
focal_class.original_string: private static final int SIZE = 20;
focal_class.type: int
focal_class.var_name: SIZE
focal_class.declarator: key
focal_class.modifier: private final
focal_class.original_string: private final byte[] key;
focal_class.type: byte[]
focal_class.var_name: key
focal_class.file: flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobKey.java
focal_class.identifier: BlobKey
focal_class.interfaces: implements Serializable, Comparable<BlobKey>
focal_class.class_method_signature: BlobKey.BlobKey()
focal_class.full_signature: public  BlobKey()
focal_class.identifier: BlobKey
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  BlobKey()
focal_class.class_method_signature: BlobKey.BlobKey(byte[] key)
focal_class.full_signature:   BlobKey(byte[] key)
focal_class.identifier: BlobKey
focal_class.parameters: (byte[] key)
focal_class.signature:  BlobKey(byte[] key)
focal_class.class_method_signature: BlobKey.addToMessageDigest(MessageDigest md)
focal_class.full_signature: public void addToMessageDigest(MessageDigest md)
focal_class.identifier: addToMessageDigest
focal_class.modifiers: public
focal_class.parameters: (MessageDigest md)
focal_class.return: void
focal_class.signature: void addToMessageDigest(MessageDigest md)
focal_class.class_method_signature: BlobKey.equals(final Object obj)
focal_class.full_signature: @Override public boolean equals(final Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object obj)
focal_class.class_method_signature: BlobKey.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: BlobKey.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: BlobKey.compareTo(BlobKey o)
focal_class.full_signature: @Override public int compareTo(BlobKey o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (BlobKey o)
focal_class.return: int
focal_class.signature: int compareTo(BlobKey o)
focal_class.class_method_signature: BlobKey.readFromInputStream(InputStream inputStream)
focal_class.full_signature: static BlobKey readFromInputStream(InputStream inputStream)
focal_class.identifier: readFromInputStream
focal_class.modifiers: static
focal_class.parameters: (InputStream inputStream)
focal_class.return: BlobKey
focal_class.signature: BlobKey readFromInputStream(InputStream inputStream)
focal_class.class_method_signature: BlobKey.writeToOutputStream(final OutputStream outputStream)
focal_class.full_signature:  void writeToOutputStream(final OutputStream outputStream)
focal_class.identifier: writeToOutputStream
focal_class.parameters: (final OutputStream outputStream)
focal_class.return: void
focal_class.signature: void writeToOutputStream(final OutputStream outputStream)
focal_method.body: @Override
  	public int compareTo(BlobKey o) {
  	
  		final byte[] aarr = this.key;
  		final byte[] barr = o.key;
  		final int len = Math.min(aarr.length, barr.length);
  	
  		for (int i = 0; i < len; ++i) {
  			final int a = (aarr[i] & 0xff);
  			final int b = (barr[i] & 0xff);
  			if (a != b) {
  				return a - b;
  			}
  		}
  	
  		return aarr.length - barr.length;
  	}
focal_method.class_method_signature: BlobKey.compareTo(BlobKey o)
focal_method.full_signature: @Override public int compareTo(BlobKey o)
focal_method.identifier: compareTo
focal_method.invocations: min
focal_method.modifiers: @Override public
focal_method.parameters: (BlobKey o)
focal_method.return: int
focal_method.signature: int compareTo(BlobKey o)