/** * Constructor. */ public ByteDataArray() { this.byteDatas = new ByteData[256]; for (int i = 0; i < 256; i++) { this.byteDatas[i] = new ByteData((byte)(i - 128)); } this.byteDataLinkedList = new ByteDataLinkedList(); this.byteDataBinaryTree = new ByteDataBinaryTree(); this.headerLength = 0; this.binaryCounter = 0; }
public ByteDataBinaryTreeTest() { byteData2.setCount(2); byteData4.setCount(4); byteData3.setCount(3); byteData1.setCount(1); byteDatas = new ByteData[4]; byteDatas[1] = byteData2; byteDatas[3] = byteData4; byteDatas[2] = byteData3; byteDatas[0] = byteData1; this.byteDataLinkedList = new ByteDataLinkedList(); this.byteDataLinkedList.addArray(byteDatas); this.byteDataBinaryTree = new ByteDataBinaryTree(); }