Code example for TreeMap

Methods: size

0
     * @param out {@code non-null;} where to write 
     */ 
    public void writeHeaderPart(AnnotatedOutput out) { 
        throwIfNotPrepared(); 
 
        int sz = fieldIds.size(); 
        int offset = (sz == 0) ? 0 : getFileOffset(); 
 
        if (out.annotates()) { 
            out.annotate(4, "field_ids_size:  " + Hex.u4(sz)); 
            out.annotate(4, "field_ids_off:   " + Hex.u4(offset)); 
        } 
 
        out.writeInt(sz); 
        out.writeInt(offset); 
    } 
 
    /** 
     * Interns an element into this instance. 
     * 
     * @param field {@code non-null;} the reference to intern