Online Representation of Markus KARG
Exceptional Information Technology Products and Services
Useful code snippets published under GPLv3. Feel free to use in your own project.
Range has an upper and lower limit and can tell whether one element is in between. There also is a unit test available. An introduction to the "Range" pattern can be found at Martin FOWLER's web site. To use this class as a LGPL'ed Maven dependency, use the following coordinates: <dependency><groupId>eu.headcrashing.treasure-chest</groupId><artifactId>RangeClass</artifactId><version>[1.2.2, 2)</version></dependency>.Enumerations to be used in for-each statements. Five times faster than Collection.list(), using virtually no heap space..