static public String makeName ( List < CoordinateAxis > axes ) { List < CoordinateAxis > axesSorted = new ArrayList <> ( axes ) ; Collections . sort ( axesSorted , new CoordinateAxis . AxisComparator ( ) ) ; StringBuilder buff = new StringBuilder ( ) ; for ( int i = 0 ; i < axesSorted . size ( ) ; i ++ ) { CoordinateAxis axis = axesSorted . get ( i ) ; if ( i > 0 ) buff . append ( " " ) ; buff . append ( axis . getFullNameEscaped ( ) ) ; } return buff . toString ( ) ; }
Create standard name from list of axes . Sort the axes first