Methods
Static min
- min<T>(collection: Collection<T>, comparator: (a: T, b: T) => int): T
-
Type parameters
Parameters
-
collection: Collection<T>
-
comparator: (a: T, b: T) => int
Returns T
Static singletonList
- singletonList<T>(item: T): Collection<T>
-
Type parameters
Parameters
Returns Collection<T>
The min(Collection<? extends T>, Comparator<? super T>) method is used to return the minimum element of the given collection, according to the order induced by the specified comparator.