Package sim.util

Interface Indexed

All Known Implementing Classes:
Bag, DoubleBag, IntBag

public interface Indexed
A simple interface (simpler than List) for accessing random-access objects without changing their size. Adhered to by Bag, IntBag, and DoubleBag
  • Method Summary

    Modifier and Type
    Method
    Description
    Should return the base component type for this Indexed object, or null if the component type should be queried via getValue(index).getClass.getComponentType()
    getValue(int index)
    Throws an IndexOutOfBoundsException if index is inappropriate.
    setValue(int index, Object value)
    Throws an IndexOutOfBoundsException if index is inappropriate, and IllegalArgumentException if the value is inappropriate.
    int
     
  • Method Details