Changeset 29:d88f2b3563f1 in rrlib_serialization-java


Ignore:
Timestamp:
08.09.2017 04:56:55 (2 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Adds initialization method to remote register entry class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PublishedRegisters.java

    r26 r29  
    6565        protected void setHandle(int handle) { 
    6666            this.handle = handle; 
     67        } 
     68 
     69        /** 
     70         * Initializes element. May be overridden. 
     71         */ 
     72        protected void init() { 
    6773        } 
    6874 
     
    144150        void deserializeEntries(BinaryInputStream stream) throws Exception { 
    145151 
     152            int oldSize = size(); 
    146153            if (stream.getSourceInfo().getRevision() == 0) { 
    147154                if (size() == 0) { 
     
    167174                } 
    168175            } 
     176            for (int i = oldSize, n = size(); i < n; i++) { 
     177                this.get(i).init(); 
     178            } 
     179 
    169180        } 
    170181 
Note: See TracChangeset for help on using the changeset viewer.