IntRange

Inheritance: java.lang.Object

public class IntRange

Class for representing sequence of elements

Constructors

ConstructorDescription
IntRange(int start, int count)Initializes a new instance of the IntRange class.
IntRange(int start, int count, int delta)Initializes a new instance of the IntRange class.
IntRange(int[] range)Initializes a new instance of the IntRange class.

Methods

MethodDescription
getRange()Gets the range.
setRange(int[] value)Sets the range.
getArrayOneItemFromIndex(int index)Returns one item array from specified index
getRange(int start, int count, int delta)Gets the count range of int elements starting at start

IntRange(int start, int count)

public IntRange(int start, int count)

Initializes a new instance of the IntRange class.

Parameters:

ParameterTypeDescription
startintThe start.
countintThe count.

IntRange(int start, int count, int delta)

public IntRange(int start, int count, int delta)

Initializes a new instance of the IntRange class.

Parameters:

ParameterTypeDescription
startintThe start.
countintThe count.
deltaintThe delta.

IntRange(int[] range)

public IntRange(int[] range)

Initializes a new instance of the IntRange class.

Parameters:

ParameterTypeDescription
rangeint[]The range.

getRange()

public int[] getRange()

Gets the range.

Returns: int[] - The range.

setRange(int[] value)

public void setRange(int[] value)

Sets the range.

Parameters:

ParameterTypeDescription
valueint[]The range.

getArrayOneItemFromIndex(int index)

public int[] getArrayOneItemFromIndex(int index)

Returns one item array from specified index

Parameters:

ParameterTypeDescription
indexintThe range index.

Returns: int[] - The array of System.Int32

getRange(int start, int count, int delta)

public static int[] getRange(int start, int count, int delta)

Gets the count range of int elements starting at start

Parameters:

ParameterTypeDescription
startintThe start.
countintThe count.
deltaintThe delta.

Returns: int[] - Array of items