Code example for Vector

Methods: add, contains

0
                listener.onImageDownloaded(scaledBitmap, origBitmap, this.imageName, this.getMapObjects());
            } 
        } 
 
        public void addListener(ImageDownloadListener listener) {
            if (!this.listeners.contains(listener)) {
                this.listeners.add(listener);
            } 
        } 
 
        public void addMapObject(AndroidMapObject mapObject) {
            if (mapObject != null && !this.mapObjects.contains(mapObject)) {
                this.mapObjects.add(mapObject);
            } 
        } 
 
        private AndroidMapObject[] getMapObjects() { 
            return this.mapObjects
                    .toArray(new AndroidMapObject[this.mapObjects.size()]);
        } 
    }