Java List Min minLength(List patterns)

Here you can find the source of minLength(List patterns)

Description

min Length

License

LGPL

Declaration

public static int minLength(List<char[]> patterns) 

Method Source Code

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

import java.util.List;

public class Main {
    public static int minLength(List<char[]> patterns) {
        int len = Integer.MAX_VALUE;
        for (char[] pattern : patterns) {
            if (pattern.length < len) {
                len = pattern.length;//from w  w w  .j a  v a 2 s.co m
            }
        }
        return len;
    }
}

Related

  1. min(List numberList)
  2. min(List numbers)
  3. min(List objectList)
  4. minAbsVal(List vals)
  5. minIndex(List list)
  6. minList(Iterable iterable)
  7. minmax(List values)
  8. minSize(List... lists)