v2.0.0-beta-0016
Pre-release
Pre-release
·
20 commits
to release/v2.0
since this release
Change Log
- #32 -
J2N.Character
: Added code point overloads of Digit() and GetNumericValue() - BUG #33: - Updated
float.MinValue
anddouble.MinValue
tofloat.Epsilon
anddouble.Epsilon
, respectively (Epsilon is the corresponding constant in .NET) - #33 - Added
[DebuggerStepThrough]
attribute in test framework assert methods - BUG #33 -
J2N.Collections.Generic.EqualityComparer
: Fixed floating point comparison logic - #33 - Added
MathExtensions.CopySign()
method - BUG #33 -
J2N.Time
: Fixed implementations of bothNanoTime()
andCurrentTimeMilliseconds()
to match the JDK and added tests. Also added field forUnixEpoch
and methods forGetTimeSpanSinceUnixEpoch()
andGetMillisecondsSinceUnixEpoch()
. See "Time calculation issue in ControlledRealTimeReopenThread" apache/lucenenet#492. - #34 - Added Numbers Classes and support for parsing and formatting numeric types that are Java-compatible (Thanks @rclabo for your help on this).
- PERFORMANCE #36 -
Character.ToString()
: Optimized to use stack for the buffer when input array is 256 codepoints or less. - BREAKING #38 -
Character.IsWhiteSpace()
: fixed method overloads to use the same rules as the JDK, which do not match .NET or any Unicode standard. - #9, #40 -
J2N.Collections.Generic.List<T>
: AddedGetView()
method to provide a slice of a list without allocating a new array. - #40 -
J2N.Collections.Generic.Extensions.ListExtensions
: AddedGetView()
extension method to expose sublist functionality on theIList<T>
interface. If the list is other thanJ2N.Collections.Generic.List<T>
or aJ2N.Collections.ObjectModel.ReadOnlyList<T>
that wrapsJ2N.Collections.Generic.List<T>
, it provides a degraded wrapper class that doesn't necessarily throw exceptions when an ancestor list is edited, but provides all members ofIList<T>
. - #40 -
J2N.Collections.Generic.Extensions.ListExtensions
: AddedRemoveAll()
extension method on IList that provides an efficient way to do a forward iteration over a list while deleting items from it. This provides a partial replacement for Java's ability to delete items while iterating any collection as well as a way to implement features from Java's Collection interface such as .removeAll() and .retainAll(). - BUG #40 -
J2N.Collections.Generic.Extensions.ListExtensions
: Fixed bounds checking of theSwap()
extension method. - PERFORMANCE #40 -
J2N.Collections.Generic.Extensions.ListExtensions
: Optimized performance ofBinarySearch()
extension methods for common cases such asList<T>
and array.