Commit Graph

175 Commits

Author SHA1 Message Date
Daniel Rall 1ca31bba23 CONSTANT: Adjusted documentation, making it into JavaDoc. Incidently,
this constant could use a more descriptive name which better indicates
its use.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136957 13f79535-47bb-0310-9956-ffa450edef68
2002-08-11 17:52:21 +00:00
Stephen Colebourne 6b2b84f0e7 Add HashCodeUtilsTest
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136955 13f79535-47bb-0310-9956-ffa450edef68
2002-08-10 12:13:28 +00:00
Stephen Colebourne 1c15cb14c0 Test HashCodeUtils - a utility to build good hashCodes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136954 13f79535-47bb-0310-9956-ffa450edef68
2002-08-10 12:13:10 +00:00
Stephen Colebourne 25508b395d Add HashCodeUtils - a utility to build good hashCodes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136953 13f79535-47bb-0310-9956-ffa450edef68
2002-08-10 12:12:49 +00:00
Henri Yandell 477290cb92 Added a stackTrace method. Possibly needs renaming. It's in common use in
other Jakarta projects such as Ant. Turns a Throwable into a String.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136952 13f79535-47bb-0310-9956-ffa450edef68
2002-08-01 20:15:43 +00:00
Steven Caswell 58503e7eec updated tests to reflect the following changes:
deprecated method getLength(), replaced with getThrowableCount();
deprecated indexOfThrowable(int, Class), replaced with indexOfThrowable(Class, int) to make signature consistent with other APIs;
changed functionality of methods that receive an index argument to throw an IndexOutOfBoundsException if the index is specified incorrectly, rather than absorbing invalid indices silently, to bring in line with the String API


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136951 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 20:30:58 +00:00
Steven Caswell e0340c8969 deprecated method getLength(), replaced with getThrowableCount();
deprecated indexOfThrowable(int, Class), replaced with indexOfThrowable(Class, int) to make signature consistent with other APIs;
changed functionality of methods that receive an index argument to throw an IndexOutOfBoundsException if the index is specified incorrectly, rather than absorbing invalid indices silently, to bring in line with the String API
cleaned up javadoc;
rearranged methods alphabetically


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136950 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 20:30:10 +00:00
Steven Caswell b6302ed270 updated e-maill address for Steven Caswell
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136949 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 19:46:38 +00:00
Jason van Zyl f7a767aabd o using the parent project.xml
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136948 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 19:07:07 +00:00
Jason van Zyl 44c94d5af1 o adding .txt extension to keep windows and checkstyle happy.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136947 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 18:58:35 +00:00
Henri Yandell 9182104b3d Changed the javadoc on this one. Randomness stuff came solely from GenJava
library.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136946 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 14:05:04 +00:00
Daniel Rall e950d9b37e Removed two broken methods from StringUtils. Since a beta has gone out,
this is not good practice.  However, since 1.0 final has not yet been
released, it is out-weighed by the trade off of releasing code that just
plain doesn't work.

Use str.getBytes(encoding) in place of convertUnicodeToNative().

Use new String(byte[], encoding) in place of convertNativeToUnicode().


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136945 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 01:40:11 +00:00
Daniel Rall 742a42dbf3 Added myself to commiters list.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136944 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 01:14:28 +00:00
Henri Yandell a0cc54bb24 Adding Lang maven POM.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136943 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 00:41:52 +00:00
Henri Yandell 9c8d148c74 wrote a release text.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136941 13f79535-47bb-0310-9956-ffa450edef68
2002-07-25 22:44:29 +00:00
Henri Yandell 7fa4ee3ce4 changed release info and added steven caswell as a committer.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136940 13f79535-47bb-0310-9956-ffa450edef68
2002-07-25 22:18:30 +00:00
Henri Yandell 80d827fd89 Added a concatenate method. While this is just a join with a "" delimiter,
the Avalon StringUtil shows that this is a valid way of looking at the
functionality.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136939 13f79535-47bb-0310-9956-ffa450edef68
2002-07-23 05:21:28 +00:00
Henri Yandell 46872f9f52 Moved deleteWhitespace from CharSetUtils to StringUtils.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136938 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 20:19:50 +00:00
Henri Yandell 97b5ac9b4a Added a deleteWhitespace method as Jakarta.Avalon has a need for this.
Should this go on StringUtils though.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136937 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 20:14:14 +00:00
Henri Yandell df7a930dcf Class names updated and new classes added.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136936 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 04:27:31 +00:00
Henri Yandell f0a5f0e8aa Added another test to show that I can pass in delimiters that don't appear
in the string I'm stripping.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136935 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 04:05:57 +00:00
Henri Yandell e488b7b892 stripStart and stripEnd methods changed to fulfill their javadoc.
Passing in strip("-+-+FOO---", "+-") will result in FOO.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136934 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 04:04:45 +00:00
Henri Yandell f01f3e8d3f removed my junit location :)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136933 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 03:39:48 +00:00
Henri Yandell 6627f7ad8f Initial copy from jakarta-commons-sandbox
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136932 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 03:35:56 +00:00
No No 750a21e864 New repository initialized by cvs2svn.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136931 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 03:35:56 +00:00