LinkedHashMap containsKeyBetween(K target, K low, K high) method? (original) (raw)
Paulo Levi i30817 at gmail.com
Fri Aug 17 14:58:02 UTC 2012
- Previous message: LinkedHashMap containsKeyBetween(K target, K low, K high) method?
- Next message: hg: jdk8/tl/jaxp: 7191547: XMLEventFactory.newFactory(String factoryId, ClassLoader loader) does not work as expected
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Never mind about this, found a much better way (just for sets i think) by using a Integer as value as HashSet uses booleans as values and a delegate LinkedHashMap. Works for implementing < and > as long and i'm careful not to loose the old value in add().
- Previous message: LinkedHashMap containsKeyBetween(K target, K low, K high) method?
- Next message: hg: jdk8/tl/jaxp: 7191547: XMLEventFactory.newFactory(String factoryId, ClassLoader loader) does not work as expected
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]