public Set < String > getEnabledOptionValues ( ) { Set < String > result = new HashSet <> ( ) ; if ( ! enabled ) { return result ; //This group is disabled entirely } for ( Option option : options . values ( ) ) { if ( option . isEnabled ( ) ) { result . add ( option . getValue ( ) ) ; } } return result ; }
Returns all the values of the options of this group that are enabled . If the group itself is disabled its options are also considered as disabled .