Interface ISafeArray<T>

All Known Implementing Classes:
CopyOnUpdateSafeArray, SafeArray

public interface ISafeArray<T>
Safe use "array", to use when ArrayIndexOutOfBoundsException might accord. Notice: This implementation is not Thread safe.
Since:
7.0
Author:
eitany
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int index, T element)
    Inserts the specified element at the specified position in this list.
    void
    Clears the array
    get(int index)
    Returns the element at the specified position in this list.
  • Method Details

    • get

      T get(int index)
      Returns the element at the specified position in this list.
      Parameters:
      index - index of element to return.
      Returns:
      the element at the specified position in this list.
    • add

      void add(int index, T element)
      Inserts the specified element at the specified position in this list.
      Parameters:
      index - index at which the specified element is to be inserted.
      element - element to be inserted.
    • clear

      void clear()
      Clears the array