Java API by
Zvi Har’El

cf
Class ClassFile.ByteArray

java.lang.Object
  extended by cf.ClassFile.ByteArray
Enclosing class:
ClassFile

protected static class ClassFile.ByteArray
extends Object

An instance of the inner class ByteArray is an immutable wrapper to a byte[] object. It provides the array with equals and hashCode methods, which are necessary so that the array can be used as a key in constant pool hash table.

Version:
$Revision: 1.135 $ $Date: 2003/11/23 06:58:30 $
Author:
Zvi Har’El
See Also:
String.hashCode(), ClassFile.cPHash

Field Summary
(package private)  byte[] bytes
           
(package private)  int hashCode
           
 
Constructor Summary
ClassFile.ByteArray(byte[] b)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
(package private)  void write(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytes

final byte[] bytes

hashCode

final int hashCode
Constructor Detail

ClassFile.ByteArray

ClassFile.ByteArray(byte[] b)
Method Detail

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object o)
Overrides:
equals in class Object

write

final void write(OutputStream out)
          throws IOException
Throws:
IOException

Java API by
Zvi Har’El

Copyright © Zvi Har’El
$Date: 2007/10/15 13:50:30$