Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeGroupCollection

Represents the collection of groups a node belongs to.

Hierarchy

  • NodeGroupCollection

Implements

Index

Constructors

constructor

Accessors

node

  • The {@link com.bayesserver.Node} the collection belongs to.

    Returns Node

size

  • get size(): number
  • Gets the number of elements contained in the {@link com.bayesserver.NodeGroupCollection} instance.

    Returns number

Methods

_2ad2e5f4b2884a52bf8bfc07ce8953d3

  • _2ad2e5f4b2884a52bf8bfc07ce8953d3(): void

__@iterator

  • __@iterator(): Iterator<string>
  • Returns Iterator<string>

_uqv_x_

  • _uqv_x_(p_autogen3: NodeGroup, p_autogen4: string, p_autogen5: string): void
  • Parameters

    • p_autogen3: NodeGroup
    • p_autogen4: string
    • p_autogen5: string

    Returns void

clear

  • clear(): void
  • Removes all elements from the collection.

    Returns void

get

  • get(index: number): string
  • Gets the group at the specified index.

    Parameters

    • index: number

      The zero-based index of the group to find.

    Returns string

    A group name.

includes

  • includes(group: string): boolean
  • Determines whether a group name is in the collection.

    Parameters

    • group: string

      The group to locate in the collection. The value can be null.

    Returns boolean

    true if [group] is found in the collection; otherwise, false.

indexOf

  • indexOf(item: string): number
  • Determines the index of a specific group in the collection.

    Parameters

    • item: string

      The node group name to find. The value can be null.

    Returns number

    The index of the group name in the collection, or -1 if not found.

insert

  • insert(index: number, item: string): void
  • Inserts an element into the collection at the specified index.

    exception

    ReferenceError Raised if [item] is null.

    exception

    RangeError index is less than 0.-or-index is equal to or greater than the collection count.

    Parameters

    • index: number

      The zero based index at which to add the element.

    • item: string

      The item to insert. Cannot be null.

    Returns void

push

  • push(...items: string[]): number
  • Parameters

    • Rest ...items: string[]

    Returns number

remove

  • remove(item: string): boolean
  • Removes the group from the collection.

    exception

    ReferenceError Raised if [item] is null.

    Parameters

    • item: string

      The group to be removed from the collection.

    Returns boolean

    true if item was successfully removed from the collection; otherwise, false. This method also returns false if item is not found in the collection.

removeAt

  • removeAt(index: number): string
  • Removes an element from the collection at the specified index.

    exception

    RangeError index is less than 0.-or-index is equal to or greater than the collection count.

    Parameters

    • index: number

      The zero based index at which to remove the element.

    Returns string

set

  • set(index: number, value: string): void
  • Sets the group at the specified index.

    Parameters

    • index: number

      The zero-based index of the group to find.

    • value: string

    Returns void