/ Published in: Java
Search objects from one map in another, as optimum as possible.
Expand |
Embed | Plain Text
long base = -1; long idk = k.getKey(); Iterator<Map.Entry<Long,Obj2>> it = m2.entrySet().iterator(); while(it.hasNext()){ if(o2.getKey()<base){ continue; } if(idk==o2.getKey()){ base = idk; //TODO: put some logic here } } }
You need to login to post a comment.
