Code example for Vector

Methods: indexOf

0
     * 
     * @param part the part object 
     * @return index the index of the first occurrence of the part in this body 
     */ 
    public int getPartIndex(PduPart part) {
        return mParts.indexOf(part);
    } 
 
    /** 
     * Get the number of parts. 
     * 
     * @return the number of parts 
     */ 
    public int getPartsNum() { 
        return mParts.size();
    } 
 
    /** 
     * Get pdu part by content id. 
     * 
     * @param cid the value of content id.