boolean function ( T arg0 ) { checkInitialization ( ) ; if ( isArrayFull ( ) ) { newCapacity ( ) ; } bag [ numberOfEntries ] = arg0 ; numberOfEntries ++ ; return true ; }
adds a new entry to this bag . concode_field_sep int numberOfEntries concode_elem_sep int DEFAULT_CAPACITY concode_elem_sep T[] bag concode_elem_sep boolean initialized concode_field_sep int getFrequencyOf concode_elem_sep T removeEntry concode_elem_sep void checkInitialization concode_elem_sep void newCapacity concode_elem_sep boolean isEmpty concode_elem_sep void clear concode_elem_sep T remove concode_elem_sep boolean remove concode_elem_sep int getCurrentSize concode_elem_sep void doubleCapacity concode_elem_sep boolean contains concode_elem_sep int getIndexOf concode_elem_sep boolean isArrayFull concode_elem_sep T[] toArray