Microsoft SDK for Java

indexOf

The indexOf method of the UnsignedIntRanges Class contains the following signatures:

indexOf(int find, int fromRange)
indexOf(int find)

indexOf(int find, int fromRange)

Searches from a starting index for a range pair containing a given a number.

Syntax

public int indexOf(int find, int fromRange);

Return Value

Returns the index of the range pair that includes the number, if found; otherwise, returns -1.

Parameters

find The number to search for.
fromRange The index of the range pair to start the search from.

Overrides

indexOf(int,int) in IntRanges.

indexOf(int find)

Searches from the beginning for a range pair containing a given a number.

Syntax

public int indexOf(int find);

Return Value

Returns the index of the range pair that includes the number, if found; otherwise, returns -1.

Parameters

find The number to search for.

Overrides

indexOf(int) in IntRanges.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.