Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NavigableSet<K>

Type parameters

  • K

Hierarchy

  • JSet<K>
    • NavigableSet

Implemented by

Index

Methods

__@iterator

  • __@iterator(): Iterator<K>

add

  • add(element: K): boolean
  • Parameters

    • element: K

    Returns boolean

    true if this set did not already contain the specified element

ceiling

  • ceiling(item: K): K
  • Parameters

    • item: K

    Returns K

    the least element greater than or equal to item, or null if there is no such element

clear

  • clear(): any

contains

  • contains(item: K): boolean

first

  • first(): K
  • Returns K

    the first (lowest) element currently in this set, null if there are no elements in this set

floor

  • floor(item: K): K
  • Parameters

    • item: K

    Returns K

    the greatest element less than or equal to e, or null if there is no such element

forEach

higher

  • higher(item: K): K
  • Parameters

    • item: K

    Returns K

    the least element greater than the given element, or null if there is no such element

immutableCollection

immutableSet

isEmpty

  • isEmpty(): boolean

iterator

last

  • last(): K
  • Returns K

    the last (highest) element currently in this set, null if there are no elements in this set

lower

  • lower(item: K): K
  • Parameters

    • item: K

    Returns K

    the greatest element less than the given element, or null if there is no such element

pollFirst

  • pollFirst(): K
  • Returns K

    the first (lowest) element, or null if this set is empty

pollLast

  • pollLast(): K
  • Returns K

    the last (highest) element, or null if this set is empty

remove

  • remove(t: K): boolean

size

  • size(): number

Generated using TypeDoc