public boolean insert ( ObjectInfo info ) { // bail if it's already in the set int ipos = indexOf ( info ) ; if ( ipos >= 0 ) { // log a warning because the caller shouldn't be doing this log . warning ( "Requested to add an object to a set that already " + "contains such an object [ninfo=" + info + ", oinfo=" + _objs [ ipos ] + "]." , new Exception ( ) ) ; return false ; } // otherwise insert it ipos = - ( ipos + 1 ) ; _objs = ListUtil . insert ( _objs , ipos , info ) ; _size ++ ; return true ; }
Inserts the supplied object into the set .