Commit Graph

2273 Commits

Author SHA1 Message Date
Henri Yandell d45e05d584 Adding a char Range test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882855 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 08:08:52 +00:00
Henri Yandell 5adce14980 Switched to static builder methods, allowing two of the constructors to restrict T to Comparables, and removed javadoc that discussed subclasses optimising methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882854 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 08:05:55 +00:00
Sebastian Bazley 5839d3e011 Javadoc fixes; add missing @Overrides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882197 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 16:40:21 +00:00
Sebastian Bazley c4e87426ff Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882193 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 16:29:01 +00:00
Henri Yandell fef34b82eb Implementing Serializable - part of LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881689 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 07:11:41 +00:00
Henri Yandell 8550f4da08 Removing ArrayUtils.hashCode per LANG-492; it is now available as java.util.Arrays.hashCode
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881685 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 06:43:23 +00:00
Paul C. Benedict Jr 87c4b35e52 LANG-555: Add IS_OS_WINDOWS_7 constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881672 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 05:58:06 +00:00
Paul C. Benedict Jr 0698ab208a LANG-554: Add 1.7 check
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881671 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 05:52:01 +00:00
Stephen Colebourne 34b9c73a6d Fix to handle null input array, and remove check for NULL
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881209 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:30:41 +00:00
Stephen Colebourne ac719ec4ab Move firstNonNull() to better place in file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881205 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:19:05 +00:00
Stephen Colebourne a14051481e Enhance Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881204 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:13:49 +00:00
Henri Yandell 0714795b6f Removing the EscapeUtils/UnescapeUtils classes, and making StringEscapeUtils the replacement. Writer variants of StringEscapeUtils are dropped - instead you hit those via the translator objects. Some javadoc/testing cleanup needed.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881197 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:45:55 +00:00
Henri Yandell c090db27a4 Remove SQL from javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881181 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 07:52:35 +00:00
Henri Yandell ab1bf739da Changing the note on high > 0x7f characters being escaped. LANG-516
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836152 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:46:04 +00:00
Henri Yandell 000bac6b94 Changing the standard escapeXml method to not escape high characters. It's easier to add that back on that remove it. LANG-516 and LANG-517
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836151 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:45:27 +00:00
Henri Yandell 9adbbb0bbf Rolling back r611543 for LANG-393, and removing the special handling of BigDecimal to use compareTo instead of equals because it creates an inequality with HashCodeBuilder [reported in LANG-467 by David Jones]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836149 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:10:19 +00:00
Matthew Jason Benson 5646355247 [LANG-553] Add TypeUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835975 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 20:17:47 +00:00
Henri Yandell 56e830a235 Removing old Range classes per LANG-551. New lang.Range class replaces these
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835780 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:54:04 +00:00
Henri Yandell 452a6c0cd8 Adding elementCompareTo method as requested in LANG-386 (which called the method positionOfXxx)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835777 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:51:08 +00:00
Henri Yandell 4c124cea28 Adding @throws and test for the ClassCastException thrown by the ComparableComparator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835771 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:05:11 +00:00
Matthew Jason Benson 89af393b32 generics fixup
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@834663 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 20:59:16 +00:00
Oliver Heger caf3f0c3c3 [LANG-545] Added ability to create a ConstantFuture object. Thanks to Stephen Colebourne for the patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833709 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 16:37:05 +00:00
Henri Yandell 5bfa8aaf14 Adding todo note to consider final/field-usage - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833363 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:53:38 +00:00
Henri Yandell da7e4f3840 Adding more tests, plus a rename of lessThan to elementBefore; greaterThan to elementAfter and bugfix so the new code works - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833358 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:45:38 +00:00
Henri Yandell b7a34131b8 containsRange test added - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833343 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:11:38 +00:00
Henri Yandell bd900f6be7 Added test for contains method, along with a null fix for contains and improved javadoc - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833337 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 10:47:15 +00:00
Henri Yandell ff1102d68d Committing work in progress version of a new Range class to replace the math.*Range classes as discussed in LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833308 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 07:56:22 +00:00
Henri Yandell effab4665e Removing PROPOSAL.html as it's misleading, yet shouldn't be updated (for example, JDK 1.2 dependency)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833086 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:14:51 +00:00
Henri Yandell acb16f7348 Applying Jörg Gottschling's patch from LANG-358 with Thomas Menzel's naming from LANG-550 and some of his tests. This adds a firstNonNull method to ObjectUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833016 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 07:25:54 +00:00
Stephen Colebourne 928950c9bf LANG-493 - Remove allElementsOfType as generics handles this pretty well now
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831709 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 17:10:02 +00:00
Stephen Colebourne dab4ca0812 Add generic return types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831704 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 16:54:34 +00:00
Stephen Colebourne 661832fb35 LANG-546 - Validate.validIndex()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831689 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:45:09 +00:00
Stephen Colebourne c1590455d2 LANG-290 - Rename isEnum to isValidEnum
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831687 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:29:04 +00:00
Stephen Colebourne de820ce189 LANG-487 - Make default style thread-safe (better Javadoc)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831686 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:25:10 +00:00
Oliver Heger a3e3a0b08f [LANG-501] Added MultiBackgroundInitializer class with JUnit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831587 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 19:52:58 +00:00
Oliver Heger 8c413aecd8 [LANG-501] Added BackgroundInitializer class with JUnit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831586 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 19:48:52 +00:00
Stephen Colebourne 86008e6c48 LANG-548 - Use Iterable instead of Collection
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830042 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 01:14:57 +00:00
Stephen Colebourne 77e3dcc393 LANG-487 - Make default style thread-safe (better Javadoc)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830040 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:59:15 +00:00
Stephen Colebourne bf626b85ba LANG-290 - Add more enum utility methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830038 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:51:38 +00:00
Stephen Colebourne 9e2d954177 Remove my author tag, add ASF author tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830032 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:15:00 +00:00
Stephen Colebourne 2d31aaf4f0 Add isTrue/isFalse methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830029 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:53:41 +00:00
Stephen Colebourne 6bc82fa5f6 Reorder methods for consistency within package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830028 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:50:31 +00:00
Stephen Colebourne ffeea79694 Javadoc clarifications and tidy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830027 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:49:25 +00:00
Stephen Colebourne 45008b994b Javadoc clarifications and tidy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830024 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:43:09 +00:00
Stephen Colebourne 283fa00f77 Use valueOf() to convert primitive to wrapper class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830016 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:12:05 +00:00
Stephen Colebourne bbab0a4b4c Enhance Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829993 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 22:06:13 +00:00
Stephen Colebourne d55299a055 LANG-487 - Make default style thread-safe
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829991 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 21:56:46 +00:00
Sebastian Bazley 61800cce67 Drop unthrown Exception
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829941 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 20:34:50 +00:00
Sebastian Bazley ababfcf843 No longer need to suppress warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829684 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 01:33:25 +00:00
Stephen Colebourne 93a3b6b251 Remove generics as they provide little value and get in the way
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829635 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 19:59:31 +00:00