public String getTextDescription ( ) { StringBuilder builder = new StringBuilder ( name ) ; builder . append ( " " ) ; List < Location > locationList = new ArrayList < Location > ( locations . getLocations ( ) ) ; Collections . sort ( locationList , new LocationComparator ( LocationComparator . START_LOCATION ) ) ; for ( Location location : locationList ) { builder . append ( " " ) ; builder . append ( location . getBeginPosition ( ) ) ; builder . append ( "-" ) ; builder . append ( location . getEndPosition ( ) ) ; } return builder . toString ( ) ; }
The feature name and location as a string - handy for text summary