org.jvnet.hk2.component
Interface InhabitantSorter

All Known Implementing Classes:
DefaultRunLevelService

@Contract
public interface InhabitantSorter

Contract for sorting inhabitants.

Author:
Jeff Trent
See Also:
RunLevelService

Method Summary
 List<Inhabitant<?>> sort(List<Inhabitant<?>> inhabitants)
          Sorts inhabitants based on an implementation specific sorting scheme.
 

Method Detail

sort

List<Inhabitant<?>> sort(List<Inhabitant<?>> inhabitants)
Sorts inhabitants based on an implementation specific sorting scheme.

Parameters:
inhabitants - the inhabitants to sort. This may possibly be an unmodifiable list. Implementors are therefore cautioned to handle this case accordingly.
Returns:
the sorted list --- must not be null


Copyright © 2011 Oracle Corporation. All Rights Reserved.