Several classes made internal

This commit is contained in:
mlemanczyk committed 2023-06-10 13:46:14 +02:00
1 parent 2ebd640f9c
commit cc045227fb
9 files changed
+10 -10

No files matched your search

@@ -1,6 +1,6 @@
namespace Recyclable.Collections
{
public interface IRandomNumberGenerator
internal interface IRandomNumberGenerator
{
int NextInt32(int startIndex, int endIndex);
}
+1 -1
View File
@@ -1,6 +1,6 @@
namespace Recyclable.Collections
{
public interface IRecyclableOwner<T> : IList<T>
internal interface IRecyclableOwner<T> : IList<T>
{
T this[long index] { get; set; }
int BlockSize { get; }
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Recyclable.Collections
{
// The source code was taken from https://codereview.stackexchange.com/questions/205407/quicksort-without-recursion.
// It was only beautified for .Net 6.0+.
public static class ListExtensions
internal static class ListExtensions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool Contains<T>(this RecyclableList<T[]> arrays, T item) => arrays.Any(x => x.Contains(item));
+1 -1
View File
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
namespace Recyclable.Collections
{
public static class MathUtils
internal static class MathUtils
{
// private static readonly long[] Pow2 = new long[]
// {
+1 -1
View File
@@ -1,6 +1,6 @@
namespace Recyclable.Collections
{
public class MemoryBucket<T>
internal class MemoryBucket<T>
{
public MemoryBucket(T[] memory, MemoryBucket<T> nextBucket)
{
@@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Recyclable.Collections</PackageId>
<PackageVersion>0.0.3.1-alpha</PackageVersion>
<PackageVersion>0.0.3.2-alpha</PackageVersion>
<Authors>Marek Lemańczyk</Authors>
<Company>N/A</Company>
<Product>Recyclable.Collections</Product>
@@ -19,7 +19,7 @@
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>`RecyclableList&lt;T&gt;` and `RecyclableLongList&lt;T&gt;` implemented. NuGet packages updated.</PackageReleaseNotes>
<PackageReleaseNotes>Several classes made internal to avoid conflicts with other packages. Not ready classes made internal for now.</PackageReleaseNotes>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
namespace Recyclable.Collections
{
public static class RecyclableLongListExtensions
internal static class RecyclableLongListExtensions
{
private const int _minPooledArraySize = RecyclableDefaults.MinPooledArrayLength;
private const long ItemNotFoundIndexLong = -1L;
@@ -1,6 +1,6 @@
namespace Recyclable.Collections
{
public readonly struct SearchConfiguration<TList, TItem>
internal readonly struct SearchConfiguration<TList, TItem>
{
public TItem ItemToFind { get; init; }
public TList List { get; init; }
@@ -1,6 +1,6 @@
namespace Recyclable.Collections
{
public class SystemRandomNumberGenerator : IRandomNumberGenerator
internal class SystemRandomNumberGenerator : IRandomNumberGenerator
{
private readonly Random _random = new();