Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Collections

Hierarchy

  • Collections

Index

Methods

Methods

Static min

  • min<T>(collection: Collection<T>, comparator: (a: T, b: T) => int): 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.

    Type parameters

    • T

    Parameters

    • collection: Collection<T>
    • comparator: (a: T, b: T) => int
        • (a: T, b: T): int
        • Parameters

          • a: T
          • b: T

          Returns int

    Returns T

Static singletonList

  • singletonList<T>(item: T): Collection<T>
  • The singletonList(T) method is used to return an immutable list containing only the specified object.

    Type parameters

    • T

    Parameters

    • item: T

    Returns Collection<T>

Generated using TypeDoc