private List < UpdateLifecycle > getUpdateLifecycles ( ) { final List < UpdateLifecycle > ret = new ArrayList <> ( ) ; for ( final UpdateLifecycle cycle : UpdateLifecycle . values ( ) ) { ret . add ( cycle ) ; } Collections . sort ( ret , ( _cycle1 , _cycle2 ) -> _cycle1 . getOrder ( ) . compareTo ( _cycle2 . getOrder ( ) ) ) ; return ret ; }
Method to get all UpdateLifecycle in an ordered List .