@Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   final int size = in.readInt();
   if (size < 1) {
     keyValueSequence = Collections.emptyList();
   } else {
     final List<Data> tmpKeyValueSequence = new ArrayList<Data>(size);
     for (int i = 0; i < size; i++) {
       final Data data = new Data();
       data.readData(in);
       tmpKeyValueSequence.add(data);
     }
     keyValueSequence = tmpKeyValueSequence;
   }
 }
Ejemplo n.º 2
0
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   entrySet = in.readObject();
   initialLoad = in.readBoolean();
 }