private List < Status > getStatus4Type ( final Type _type ) throws CacheReloadException { final List < Status > ret = new ArrayList <> ( ) ; final StatusGroup grp = Status . get ( _type . getUUID ( ) ) ; if ( grp != null ) { ret . addAll ( grp . values ( ) ) ; } else { for ( final Type type : _type . getChildTypes ( ) ) { ret . addAll ( getStatus4Type ( type ) ) ; } } return ret ; }
Recursive method to get all status for a Type representing a StatusGrp .