Java Collection Min min(Collection coll)

Here you can find the source of min(Collection coll)

Description

min

License

Apache License

Declaration

public static <T extends Object & Comparable<? super T>> T min(Collection<? extends T> coll) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/

import java.util.*;

public class Main {

    public static <T extends Object & Comparable<? super T>> T min(Collection<? extends T> coll) {
        return Collections.min(coll);
    }//from   ww w .j  av a 2s  . c o m

    public static <T> T min(Collection<? extends T> coll, Comparator<? super T> comp) {
        return Collections.min(coll, comp);
    }
}

Related

  1. min(Collection data)
  2. min(Collection doubles)
  3. min(Collection values)
  4. min(Collection a)