Refine search
protected void walkToLoad(ObjectInput byteArray) throws IOException, ClassNotFoundException { c = byteArray.readChar(); status = ARRAY_STATUS[byteArray.readInt()]; if (status == Status.WORD_END_3 || status == Status.WORD_MIDDLE_2) { value = (V) byteArray.readObject(); } int childSize = byteArray.readInt(); child = new BaseNode[childSize]; for (int i = 0; i < childSize; ++i) { child[i] = new Node<V>(); child[i].walkToLoad(byteArray); } }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); MutableObjectCharMap<V> deserializedMap = new ObjectCharHashMap<V>(); for (int i = 0; i < size; i++) { deserializedMap.put((V) in.readObject(), in.readChar()); } this.map = deserializedMap; }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); MutableCharObjectMap<V> deserializedMap = new CharObjectHashMap<V>(); for (int i = 0; i < size; i++) { deserializedMap.put(in.readChar(), (V) in.readObject()); } this.map = deserializedMap; }