Code example for Vector

Methods: elementAt

0
 
    public boolean getAttributeBooleanValue(int index, boolean defaultValue) {
 
	Log.v("attributeprops", "1");
 
	Thing val = (Thing)values.elementAt(index);
	try { 
	    if (val != null) {
		return IntThing.get(val) != 0;
	    } 
	} catch (HeclException he) {
	    /* Ignore it  */ 
	} 
	return defaultValue;
    } 
 
    public int getAttributeCount() { 
 
	Log.v("attributeprops", "1");
 
	return values.size();