Package cn.nukkit.utils
Class NukkitCollectors
java.lang.Object
cn.nukkit.utils.NukkitCollectors
- Since:
- 2021-03-26
- Author:
- joserobjr
-
Method Summary
Modifier and TypeMethodDescriptionReturns aCollector
accepting elements of typeT
that counts the number of input elements.
-
Method Details
-
countingInt
Returns aCollector
accepting elements of typeT
that counts the number of input elements. If no elements are present, the result is 0.- Type Parameters:
T
- the type of the input elements- Returns:
- a
Collector
that counts the input elements
-