1Licensed to the Apache Software Foundation (ASF) under one or more 2contributor license agreements. See the NOTICE file distributed with 3this work for additional information regarding copyright ownership. 4The ASF licenses this file to You under the Apache License, Version 2.0 5(the "License"); you may not use this file except in compliance with 6the License. You may obtain a copy of the License at 7 8http://www.apache.org/licenses/LICENSE-2.0 9 10Unless required by applicable law or agreed to in writing, software 11distributed under the License is distributed on an "AS IS" BASIS, 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13See the License for the specific language governing permissions and 14limitations under the License. 15 16============================================================================= 17 18 Commons Lang Package 19 Version 1.0 20 Release Notes 21 22 23INTRODUCTION: 24 25This document contains the release notes for this version of the Commons 26Lang package. Commons Lang is a set of utility functions and reusable 27components that should be a help in any Java environment. 28 29NEW FEATURES: 30 31Since the release of the b1 package the following have been added: 32 33lang. 34 SystemUtils: 35 Brings together many system specific variables under one easy component. 36 37exception. 38 ExceptionUtils: 39 Provides helpful static functions for dealing with Exceptions. 40 NestableError : 41 Adds nesting ability to Errors. 42 43enum sub-package: 44 A solid version of the typical Java translation of a C enum. 45 46builder sub-package: 47 A series of helpers for handling standard Object methods such as equals, 48 toString, compareTo and hashCode in a professional manner. 49 50 51BUG FIXES: 52 53StringUtils.stripStart and stripEnd were improved to match their Javadoc. 54StringUtils.convertUnicodeToNative and convertNativeToUnicode both removed. 55 Both methods did not work properly. 56 57 58DEPRECATIONS: 59 60Much of the exception subpackage was reworked between 1.0-b1 and 1.0. Apart 61from this the API should have a high level of backward compatibility. 62 63 64CHANGES: [In 'diff' format] 65 66Jar changes 67=========== 68> org.apache.commons.lang.exception.ExceptionUtils 69> org.apache.commons.lang.exception.NestableError 70> org.apache.commons.lang.ObjectUtils$Null 71> org.apache.commons.lang.ObjectUtils$1 72> org.apache.commons.lang.enum.Enum$Entry 73> org.apache.commons.lang.enum.Enum$1 74> org.apache.commons.lang.enum.Enum 75> org.apache.commons.lang.enum.EnumUtils 76> org.apache.commons.lang.enum.ValuedEnum 77> org.apache.commons.lang.builder.CompareToBuilder 78> org.apache.commons.lang.builder.EqualsBuilder 79> org.apache.commons.lang.builder.HashCodeBuilder 80> org.apache.commons.lang.builder.StandardToStringStyle 81> org.apache.commons.lang.builder.ToStringStyle$DefaultToStringStyle 82> org.apache.commons.lang.builder.ToStringStyle$NoFieldNameToStringStyle 83> org.apache.commons.lang.builder.ToStringStyle$SimpleToStringStyle 84> org.apache.commons.lang.builder.ToStringStyle$MultiLineToStringStyle 85> org.apache.commons.lang.builder.ToStringStyle$1 86> org.apache.commons.lang.builder.ToStringStyle 87> org.apache.commons.lang.builder.ToStringBuilder 88> org.apache.commons.lang.SystemUtils 89 90 91Class changes 92============= 93org.apache.commons.lang.exception.Nestable 94-------------------- 95< public abstract int getLength(); 96> public abstract int getThrowableCount(); 97< public abstract int indexOfThrowable(int, java.lang.Class); 98--- 99> public abstract int indexOfThrowable(java.lang.Class, int); 100> public abstract void printStackTrace(java.io.PrintStream); 101 102org.apache.commons.lang.exception.NestableDelegate 103-------------------- 104< int getLength(); 105< java.lang.String getMessage(java.lang.String); 106> java.lang.String getMessage(java.lang.String); 107> java.lang.String getMessages()[]; 108> int getThrowableCount(); 109< java.lang.String getMessages()[]; 110< int indexOfThrowable(int, java.lang.Class); 111--- 112> int indexOfThrowable(java.lang.Class, int); 113 114org.apache.commons.lang.exception.NestableException 115-------------------- 116< public int getLength(); 117> public java.lang.String getMessage(int); 118> public int getThrowableCount(); 119< public java.lang.String getMessage(int); 120< public int indexOfThrowable(int, java.lang.Class); 121--- 122> public int indexOfThrowable(java.lang.Class, int); 123 124org.apache.commons.lang.exception.NestableRuntimeException 125-------------------- 126< public int getLength(); 127> public java.lang.String getMessage(int); 128> public int getThrowableCount(); 129< public java.lang.String getMessage(int); 130< public int indexOfThrowable(int, java.lang.Class); 131--- 132> public int indexOfThrowable(java.lang.Class, int); 133 134org.apache.commons.lang.NumberUtils 135-------------------- 136> public static long minimum(long, long, long); 137> public static long maximum(long, long, long); 138> public static int compare(double, double); 139> public static int compare(float, float); 140 141org.apache.commons.lang.ObjectUtils 142-------------------- 143> public static final org.apache.commons.lang.ObjectUtils.Null NULL; 144> public org.apache.commons.lang.ObjectUtils(); 145> public static java.lang.String identityToString(java.lang.Object); 146> static {}; 147> public static class org.apache.commons.lang.ObjectUtils. Null extends java.lang.Object implements java.io.Serializable 148 149org.apache.commons.lang.RandomStringUtils 150-------------------- 151> public org.apache.commons.lang.RandomStringUtils(); 152 153org.apache.commons.lang.StringUtils 154-------------------- 155> public org.apache.commons.lang.StringUtils(); 156< public static java.lang.String stackTrace(java.lang.Throwable); 157< public static java.lang.String convertUnicodeToNative(java.lang.String, java.lang.String) throws java.io.IOException; 158< public static java.lang.String convertNativeToUnicode(java.lang.String, java.lang.String) throws java.io.IOException; 159--- 160> public static boolean containsOnly(java.lang.String, char[]); 161 162