Class TLcdIntBuffer

java.lang.Object
com.luciad.ais.util.TLcdIntBuffer

public class TLcdIntBuffer extends Object
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Creates a new ExtendableIntArray that is able to contain INITIAL_CAPACITY number of integers.
    TLcdIntBuffer(int aInitialCapacity)
    Creates a new ExtendableIntArray that is able to contain aInitialCapacity number of integers.
    Copy constructor.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    add(int aValue)
    Adds an element to the array of integers.
    void
    add(int aIndex, int aValue)
    Inserts the specified value at the specified position.
     
    int
    find(int aNumber)
    Returns the position of aNumber in this extendable array.
    int
    getNumber(int aIndex)
    Returns the integer at position aIndex.
    int
    Returns the number of integers in the array.
    boolean
    remove(int aValue)
     
    void
     
    void
    set(int aIndex, int aValue)
    Replaces the element at the specified position with the specified value.

    Methods inherited from class java.lang.Object Link icon

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • TLcdIntBuffer Link icon

      public TLcdIntBuffer()
      Creates a new ExtendableIntArray that is able to contain INITIAL_CAPACITY number of integers.
    • TLcdIntBuffer Link icon

      public TLcdIntBuffer(int aInitialCapacity)
      Creates a new ExtendableIntArray that is able to contain aInitialCapacity number of integers.
      Parameters:
      aInitialCapacity -
    • TLcdIntBuffer Link icon

      public TLcdIntBuffer(TLcdIntBuffer aIntBuffer)
      Copy constructor.
      Parameters:
      aIntBuffer - the intBuffer to be copied into a new object
  • Method Details Link icon

    • add Link icon

      public void add(int aValue)
      Adds an element to the array of integers. If there are no free places, the array's sizes is multiplied by GROWTH_FACTOR.
    • add Link icon

      public void add(int aIndex, int aValue)
      Inserts the specified value at the specified position. Shifts the value currently at that position and all subsequent values (if any) to the right.
    • set Link icon

      public void set(int aIndex, int aValue)
      Replaces the element at the specified position with the specified value.
    • find Link icon

      public int find(int aNumber)
      Returns the position of aNumber in this extendable array. A binary search algorithm is used to find the number. If the number is not found, the returned position indicates were to insert aNumber.
    • getNumberCount Link icon

      public int getNumberCount()
      Returns the number of integers in the array.
    • getNumber Link icon

      public int getNumber(int aIndex)
      Returns the integer at position aIndex.
    • remove Link icon

      public boolean remove(int aValue)
    • removeAll Link icon

      public void removeAll()
    • clone Link icon

      public Object clone()
      Overrides:
      clone in class Object