/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public TagCollectionImpl(StoreReader sr, StoreClassRegister scr) { super(new ArrayList<Tag>()); int tagCount; tagCount = sr.readCharacter(); for (int i = 0; i < tagCount; i++) { add(new Tag(sr, scr)); } }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public TagCollectionImpl(StoreReader sr, StoreClassRegister scr) { super(new ArrayList<Tag>()); int tagCount; tagCount = sr.readCharacter(); for (int i = 0; i < tagCount; i++) { add(new Tag(sr, scr)); } }