Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 699:3c70aa595724 facets-slt
mico opt: inter cmps are faster than str cmps.
flys-artifacts/branches/facets-slt@2146 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 17 Jun 2011 11:23:57 +0000 |
parents | dae37cbe4ae2 |
children | 94f0f91be11c |
comparison
equal
deleted
inserted
replaced
698:dae37cbe4ae2 | 699:3c70aa595724 |
---|---|
362 String name = facet.getName(); | 362 String name = facet.getName(); |
363 int index = facet.getIndex(); | 363 int index = facet.getIndex(); |
364 | 364 |
365 for (Map.Entry<String, List<Facet>> entry: facets.entrySet()) { | 365 for (Map.Entry<String, List<Facet>> entry: facets.entrySet()) { |
366 for (Facet f: entry.getValue()) { | 366 for (Facet f: entry.getValue()) { |
367 if (f.getName().equals(name) && f.getIndex() == index) { | 367 if (f.getIndex() == index && f.getName().equals(name)) { |
368 return f; | 368 return f; |
369 } | 369 } |
370 } | 370 } |
371 } | 371 } |
372 | 372 |