Java com.google.common.collect MoreCollectors fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect MoreCollectors fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect MoreCollectors.

The text is from its open source code.

Method

CollectoronlyElement()
A collector that takes a stream containing exactly one element and returns that element.
Collector>toOptional()
A collector that converts a stream of zero or one elements to an Optional .