Package com.luciad.model
Interface ILcdIntegerIndexedModel
- All Superinterfaces:
AutoCloseable
,ILcdDisposable
,ILcdModel
,Serializable
- All Known Implementing Classes:
TLcd2DBoundsIndexedModel
,TLcd2DBoundsIndexedModelTreeNode
,TLcd2DRegularTiledBoundsIndexedModel
,TLcdAIXM51AbstractAIXMMessage
,TLcdASTERIXFilteredModel
,TLcdDataObjectIndexedAnd2DBoundsIndexedModel
,TLcdDataObjectIndexedVectorModel
,TLcdFeatureIndexedAnd2DBoundsIndexedModel
,TLcdFeatureIndexedVectorModel
,TLcdGML2AbstractFeatureCollection
,TLcdGML31AbstractFeatureCollection
,TLcdGML31DynamicFeatureCollection
,TLcdGML31FeatureCollection
,TLcdGML31Model
,TLcdGML32AbstractFeatureCollection
,TLcdGML32FeatureCollection
,TLcdGML32Model
,TLcdKML22AbstractContainer
,TLcdKML22Document
,TLcdKML22Folder
,TLcdKML22Kml
,TLcdMagneticNorthModel
,TLcdModelTreeNode
,TLcdMultilevel2DBoundsIndexedModel
,TLcdNetCDFFilteredModel
,TLcdNVG15Model
,TLcdNVG20FilteredModel
,TLcdNVG20Model
,TLcdTrackModel
,TLcdVectorModel
An
ILcdModel
whose elements can be retrieved via an integer-based index.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.model.ILcdModel
ILcdModel.Query
-
Field Summary
Fields inherited from interface com.luciad.model.ILcdModel
FIRE_LATER, FIRE_NOW, NO_EVENT
-
Method Summary
Methods inherited from interface com.luciad.util.ILcdDisposable
close
Methods inherited from interface com.luciad.model.ILcdModel
addElement, addElements, addModelListener, canAddElement, canRemoveElement, dispose, elementChanged, elements, elementsChanged, fireCollectedModelChanges, getModelDescriptor, getModelEncoder, getModelMetadata, getModelReference, query, removeAllElements, removeElement, removeElements, removeModelListener
-
Method Details
-
size
int size()Returns the number of elements in this model.- Returns:
- the number of elements in this model.
-
elementAt
Returns the element at the specified index.- Parameters:
aIndex
- an index into thisILcdModel
.- Returns:
- the element at the specified index.
- Throws:
IndexOutOfBoundsException
- if an invalid index was given (aIndex < 0 || aIndex >= size())
.
-
indexOf
Returns the index of the first occurrence of the specified element in the model, or -1 if this model does not contain the element. More formally: returns the smallesti
for whichthis.elementAt(i).equals(aElement)
.- Parameters:
aElement
- the element to search for.- Returns:
- the index of the first occurrence of the specified element in model vector, or -1 if this model does not contain the element.
-