@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); int len = in.readInt(); if (len > 0) { data = new ArrayList<CountDownLatchContainer>(len); for (int i = 0; i < len; i++) { CountDownLatchContainer container = new CountDownLatchContainer(); container.readData(in); data.add(container); } } } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); int len = in.readInt(); if (len > 0) { data = new ArrayList<CountDownLatchContainer>(len); for (int i = 0; i < len; i++) { CountDownLatchContainer container = new CountDownLatchContainer(); container.readData(in); data.add(container); } } } }