public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( long key ) {
public boolean isEmpty() { return m.isEmpty(); } public boolean containsKey( long key ) { return m.containsKey( key ); }
@Override public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } @Override
public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( long key ) {
public boolean isEmpty() { return m.isEmpty(); } public boolean containsKey( long key ) { return m.containsKey( key ); }
public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( long key ) {
public boolean isEmpty() { return m.isEmpty(); } public boolean containsKey( long key ) { return m.containsKey( key ); }
public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( long key ) {
@Override public boolean isEmpty() { return m.isEmpty(); } @Override
public boolean isEmpty() { return m.isEmpty(); } public boolean containsKey( long key ) { return m.containsKey( key ); }
public static <T extends DeBruijnNodeBase> long getExpectedReferencePosition(Iterable<T> nodes) { TLongIntMap map = new TLongIntHashMap(); for (DeBruijnNodeBase n : nodes) { for (Support s : n.support) { if (s.isReference) { map.adjustOrPutValue(s.expectedLinearPosition, s.weight, s.weight); } } } if (map.isEmpty()) throw new IllegalStateException("No reference support"); return getKeyWithMaxValue(map); } private static long getKeyWithMaxValue(TLongIntMap map) {