ItEr30S17ValidacionEProbasFuncionais: Changing types of sort function to have a more friendly API
Bug #48
This commit is contained in:
parent
85fc42fb5a
commit
d836543b25
1 changed files with 3 additions and 4 deletions
|
|
@ -49,10 +49,9 @@ import org.navalplanner.business.resources.entities.Resource;
|
|||
public abstract class ResourceAllocation<T extends DayAssignment> extends
|
||||
BaseEntity {
|
||||
|
||||
public static List<ResourceAllocation<?>> sortedByStartDate(
|
||||
Collection<? extends ResourceAllocation<?>> allocations) {
|
||||
List<ResourceAllocation<?>> result = new ArrayList<ResourceAllocation<?>>(
|
||||
allocations);
|
||||
public static <R extends ResourceAllocation<?>> List<R> sortedByStartDate(
|
||||
Collection<R> allocations) {
|
||||
List<R> result = new ArrayList<R>(allocations);
|
||||
Collections.sort(result, byStartDateComparator());
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue