Packages

 

com.aspose.cad

Class IntRange



  • public class IntRange
    extends Object

    Class for representing sequence of elements

    • Constructor Detail

      • IntRange

        public IntRange(int start,
                        int count)

        Initializes a new instance of the IntRange class.

        Parameters:
        start - The start.
        count - The count.
      • IntRange

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

        Initializes a new instance of the IntRange class.

        Parameters:
        start - The start.
        count - The count.
        delta - The delta.
      • IntRange

        public IntRange(int[] range)

        Initializes a new instance of the IntRange class.

        Parameters:
        range - The range.
    • Method Detail

      • getRange

        public int[] getRange()

        Gets or sets the range.

        Value: The range.
      • setRange

        public void setRange(int[] value)

        Gets or sets the range.

        Value: The range.
      • getArrayOneItemFromIndex

        public int[] getArrayOneItemFromIndex(int index)

        Returns one item array from specified index

        Parameters:
        index - The range index.
        Returns:
        The array of System.Int32
        Throws:
        com.aspose.ms.System.IndexOutOfRangeException - Index is out of range
      • getRange

        public static com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Integer> getRange(int start,
                                                                                                    int count,
                                                                                                    int delta)

        Gets the count range of int elements starting at start

        Parameters:
        start - The start.
        count - The count.
        delta - The delta.
        Returns:
        Array of items
        Throws:
        com.aspose.ms.System.ArgumentException - Count can not be lover than 1 or {D255958A-8513-4226-94B9-080D98F904A1}Start page can not be lover than 0