public List < Option > getOptions ( boolean includeDisabled ) { List < Option > result = new ArrayList <> ( ) ; //Keep order if ( ! includeDisabled && ! enabled ) { return result ; //This group is disabled entirely } for ( Option option : options . values ( ) ) { if ( includeDisabled || option . isEnabled ( ) ) { result . add ( option ) ; } } return result ; }
Returns all the options in this group in list order .