public int putIfAbsent( int key, int value ) { synchronized( mutex ) { return m.putIfAbsent( key, value ); } } public boolean forEachKey( TIntProcedure procedure ) {
public int putIfAbsent( int key, int value ) { synchronized( mutex ) { return m.putIfAbsent( key, value ); } } public boolean forEachKey( TIntProcedure procedure ) {
public int putIfAbsent( int key, int value ) { synchronized( mutex ) { return m.putIfAbsent( key, value ); } } public boolean forEachKey( TIntProcedure procedure ) {
@Override public int putIfAbsent( int key, int value ) { synchronized( mutex ) { return m.putIfAbsent( key, value ); } } @Override
public int putIfAbsent( int key, int value ) { synchronized( mutex ) { return m.putIfAbsent( key, value ); } } public boolean forEachKey( TIntProcedure procedure ) {
public int lookupIndex(DictionaryTypes tag, String item) { int id = dictionaries[tag.ordinal()].lookupIndex(item); if (isCounting && id > 0) { counters[tag.ordinal()].putIfAbsent(id, 0); counters[tag.ordinal()].increment(id); } return id <= 0 ? 1 : id; }
public int lookupIndex(DictionaryTypes tag, String item) { int id = dictionaries[tag.ordinal()].lookupIndex(item); if (isCounting && id > 0) { counters[tag.ordinal()].putIfAbsent(id, 0); counters[tag.ordinal()].increment(id); } return id <= 0 ? 1 : id; }