public int lookupIndex ( long entry ) { int ret = map . get ( entry ) ; if ( ret <= 0 && ! growthStopped ) { numEntries ++ ; ret = numEntries ; map . put ( entry , ret ) ; } return ret - 1 ; // feature id should be 0-based }
Return - 1 if entry isn t present .