cdm/src/main/java/ucar/nc2/Attribute.java
static public Map<String, Attribute> makeMap(List<Attribute> atts)
  {
    int size = (atts == null) ? 1 : atts.size();
    Map<String, Attribute> result = new HashMap<>(size);
    if(atts == null) return result;
    for(Attribute att : atts) result.put(att.getShortName(), att);
    return result;
  }
static public Map<String, Attribute> makeMap(List<Attribute> atts)
  {
    int size = (atts == null) ? 1 : atts.size();
    Map<String, Attribute> result = new HashMap<>(size);
    if(atts == null) return result;
    for(Attribute att : atts) result.put(att.getShortName(), att);
    return result;
  }
static public Map < String , Attribute > makeMap ( List < Attribute > atts ) { int size = ( atts == null ) ? 1 : atts . size ( ) ; Map < String , Attribute > result = new HashMap <> ( size ) ; if ( atts == null ) return result ; for ( Attribute att : atts ) result . put ( att . getShortName ( ) , att ) ; return result ; }
Turn a list into a map

@param atts list of attributes
@return map of attributes by name
Turn a list into a map