Class CopyOnUpdateSafeArray<T>

java.lang.Object
com.gigaspaces.internal.utils.collections.CopyOnUpdateSafeArray<T>
All Implemented Interfaces:
ISafeArray<T>

public class CopyOnUpdateSafeArray<T> extends Object implements ISafeArray<T>
Copy on update implementation of ISafeArray
Since:
7.0
Author:
eitany
  • Constructor Details

    • CopyOnUpdateSafeArray

      public CopyOnUpdateSafeArray()
    • CopyOnUpdateSafeArray

      public CopyOnUpdateSafeArray(int initialCapacity)
  • Method Details

    • add

      public void add(int index, T element)
      Description copied from interface: ISafeArray
      Inserts the specified element at the specified position in this list.
      Specified by:
      add in interface ISafeArray<T>
      Parameters:
      index - index at which the specified element is to be inserted.
      element - element to be inserted.
    • get

      public T get(int index)
      Description copied from interface: ISafeArray
      Returns the element at the specified position in this list.
      Specified by:
      get in interface ISafeArray<T>
      Parameters:
      index - index of element to return.
      Returns:
      the element at the specified position in this list.
    • clear

      public void clear()
      Description copied from interface: ISafeArray
      Clears the array
      Specified by:
      clear in interface ISafeArray<T>