cdm/src/main/java/ucar/nc2/Structure.java
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);
    }
  }
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);
    }
  }
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.
@param vars this is the list of member variables
Set the list of member variables .