Skip to content

v2.0.0-beta-0016

Pre-release
Pre-release
Compare
Choose a tag to compare
@NightOwl888 NightOwl888 released this 24 Jul 10:06
· 20 commits to release/v2.0 since this release

Change Log

  1. #32 - J2N.Character: Added code point overloads of Digit() and GetNumericValue()
  2. BUG #33: - Updated float.MinValue and double.MinValue to float.Epsilon and double.Epsilon, respectively (Epsilon is the corresponding constant in .NET)
  3. #33 - Added [DebuggerStepThrough] attribute in test framework assert methods
  4. BUG #33 - J2N.Collections.Generic.EqualityComparer: Fixed floating point comparison logic
  5. #33 - Added MathExtensions.CopySign() method
  6. BUG #33 - J2N.Time: Fixed implementations of both NanoTime() and CurrentTimeMilliseconds() to match the JDK and added tests. Also added field for UnixEpoch and methods for GetTimeSpanSinceUnixEpoch() and GetMillisecondsSinceUnixEpoch(). See "Time calculation issue in ControlledRealTimeReopenThread" apache/lucenenet#492.
  7. #34 - Added Numbers Classes and support for parsing and formatting numeric types that are Java-compatible (Thanks @rclabo for your help on this).
  8. PERFORMANCE #36 - Character.ToString(): Optimized to use stack for the buffer when input array is 256 codepoints or less.
  9. BREAKING #38 - Character.IsWhiteSpace(): fixed method overloads to use the same rules as the JDK, which do not match .NET or any Unicode standard.
  10. #9, #40 - J2N.Collections.Generic.List<T>: Added GetView() method to provide a slice of a list without allocating a new array.
  11. #40 - J2N.Collections.Generic.Extensions.ListExtensions: Added GetView() extension method to expose sublist functionality on the IList<T> interface. If the list is other than J2N.Collections.Generic.List<T> or a J2N.Collections.ObjectModel.ReadOnlyList<T> that wraps J2N.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 of IList<T>.
  12. #40 - J2N.Collections.Generic.Extensions.ListExtensions: Added RemoveAll() 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().
  13. BUG #40 - J2N.Collections.Generic.Extensions.ListExtensions: Fixed bounds checking of the Swap() extension method.
  14. PERFORMANCE #40 - J2N.Collections.Generic.Extensions.ListExtensions: Optimized performance of BinarySearch() extension methods for common cases such as List<T> and array.