Java List Sort sort(List list)

Here you can find the source of sort(List list)

Description

sort

License

Apache License

Declaration

@SuppressWarnings({ "unchecked", "rawtypes" })
    public static <T> List<T> sort(List<T> list) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public static <T> List<T> sort(List<T> list) {
        if (list != null && list.size() > 0) {
            Collections.sort((List) list);
        }//from   ww w  . j  a va2s .  com
        return list;
    }
}

Related

  1. sort(List list)
  2. sort(List source)
  3. sort(List> listOfClassDataList)
  4. sort(List> lists)
  5. sort(List lists)
  6. sort(List list)
  7. sort(List list)
  8. sort(List list)
  9. sort(List list)