Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a list of values with lazy deserialization. Iterating over this list and some of its methods will throw HazelcastSerializationError in case a compact object is read and its schema is not known by the client.

Type parameters

  • T

Hierarchy

  • ReadOnlyLazyList

Index

Methods

  • [iterator](): Iterator<T, any, undefined>
  • Returns Iterator<T, any, undefined>

  • get(index: number): T
  • Returns list's element at the specified index.

    throws

    HazelcastSerializationError if the object to be returned is a compact object whose schema is not known

    Parameters

    • index: number

      element's index

    Returns T

    element

  • size(): number
  • Returns the size of the list.

    Returns number

  • Returns a slice of the list.

    Parameters

    • start: number

      The beginning of the specified portion of the list (inclusive).

    • Optional end: number

      The end of the specified portion of the list (exclusive).

    Returns ReadOnlyLazyList<T>

  • toArray(): T[]
  • Returns an array that contains all elements of this list in proper sequence.

    throws

    HazelcastSerializationError if the list includes a compact object whose schema is not known

    Returns T[]

  • values(): Iterator<T, any, undefined>
  • Returns an iterator for elements in the list.

    Returns Iterator<T, any, undefined>

Generated using TypeDoc