Commit Graph

2213 Commits

Author SHA1 Message Date
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
Sebastian Bazley b1cf6305e5 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829549 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:45:55 +00:00
Sebastian Bazley 6627b34cbf Drop unthrown Exception
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829548 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:45:41 +00:00
Sebastian Bazley ebb466c417 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829547 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:44:48 +00:00
Sebastian Bazley 7072a549e5 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829545 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:44:15 +00:00
Sebastian Bazley f4ace74c76 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829541 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:26:24 +00:00
Sebastian Bazley 509e3d2e3a Be more generous in the types we accept
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829540 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:24:27 +00:00
Sebastian Bazley c21e66257b Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829538 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:17:49 +00:00
Sebastian Bazley 14cde02867 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829537 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:08:55 +00:00
Sebastian Bazley 5ca6b02849 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829535 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:07:57 +00:00
Sebastian Bazley 64712a4fd3 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829534 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:07:08 +00:00