public void setMemberVariables ( List < Variable > vars ) { if ( isImmutable ( ) ) throw new IllegalStateException ( "Cant modify" ) ; members = new ArrayList <> ( ) ; memberHash = new HashMap <> ( 2 * vars . size ( ) ) ; for ( Variable v : vars ) { addMemberVariable ( v ) ; } }
Set the list of member variables .