Java Stream Operation maxStringLength(Stream stringStream)

Here you can find the source of maxStringLength(Stream stringStream)

Description

max String Length

License

Open Source License

Declaration

static int maxStringLength(Stream<String> stringStream) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.stream.Stream;

public class Main {
    static int maxStringLength(Stream<String> stringStream) {
        return stringStream.mapToInt(String::length).max().getAsInt();
    }//from   w ww  . ja va 2  s . c  o  m
}

Related

  1. longList(LongStream stream)
  2. makeStream(final Object[] array)
  3. mapElementsSizes(IntStream intStream)
  4. maximum(final Stream stream)
  5. maxLong(Stream stream)
  6. mkString(Stream items, String prefix, String delimiter, String suffix)
  7. nullableStreamOf(Collection nullableCollection)
  8. ofType(Stream stream, Class type)
  9. opt2stream(Optional opt)