Search Results for

    Show / Hide Table of Contents

    Class IterableUtil

    Defines a helper class for work with Iterable instances

    Inheritance
    java.lang.Object
    IterableUtil
    Inherited Members
    Object.clone()
    Object.equals(Object)
    Object.finalize()
    Object.getClass()
    Object.hashCode()
    Object.notify()
    Object.notifyAll()
    Object.toString()
    Object.wait()
    Object.wait(long)
    Object.wait(long,int)
    Namespace:
    Assembly: .dll
    Syntax
    public class IterableUtil

    Constructors

    IterableUtil()

    Declaration
    public IterableUtil()

    Methods

    <T>range(int start, int count, Func1<Integer,T> selector)

    Creates Iterable which emits count values which are selected by selector function

    Declaration
    public static Iterable<T> <T>range(int start, int count, Func1<Integer,T> selector)
    Parameters
    Type Name Description
    int start

    The start index of sequence

    int count

    The amount of items in sequence

    Func1<Integer,T> selector

    The selector function for value in sequence

    Returns
    Type Description
    Iterable<T>

    The Iterable instance with specified items

    <T>toArray(Iterable<T> iterable, Class<T> type)

    Converts iterable to an array

    Declaration
    public static T[] <T>toArray(Iterable<T> iterable, Class<T> type)
    Parameters
    Type Name Description
    Iterable<T> iterable

    Iterable to convert

    Class<T> type

    Type of array items

    Returns
    Type Description
    T[]

    The result of conversion

    <T>toList(Iterable<T> iterable)

    Converts iterable to a list

    Declaration
    public static List<T> <T>toList(Iterable<T> iterable)
    Parameters
    Type Name Description
    Iterable<T> iterable

    Iterable to convert

    Returns
    Type Description
    List<T>

    The result of conversion

    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml