Skip to content

Commit f548f40

Browse files
committed
Mark structures as sealed
1 parent 7584d3a commit f548f40

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Src/FastData/Generators/Contexts/BloomFilterContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Genbox.FastData.Generators.Contexts;
44

5-
public class BloomFilterContext(ulong[] bitSet) : IContext
5+
public sealed class BloomFilterContext(ulong[] bitSet) : IContext
66
{
77
public ulong[] BitSet { get; } = bitSet;
88
}

Src/FastData/Generators/Contexts/RangeContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Genbox.FastData.Generators.Contexts;
44

55
/// <summary>Provides a context for ranged-based data structures.</summary>
6-
public class RangeContext<TKey>(TKey min, TKey max) : IContext
6+
public sealed class RangeContext<TKey> : IContext
77
{
88
public TKey Min { get; } = min;
99
public TKey Max { get; } = max;

Src/FastData/Generators/Contexts/RrrBitVectorContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Genbox.FastData.Generators.Contexts;
44

5-
public class RrrBitVectorContext(ulong minValue, ulong maxValue, int blockSize, byte[] classes, uint[] offsets) : IContext
5+
public sealed class RrrBitVectorContext(ulong minValue, ulong maxValue, int blockSize, byte[] classes, uint[] offsets) : IContext
66
{
77
public ulong MinValue { get; } = minValue;
88
public ulong MaxValue { get; } = maxValue;

Src/FastData/Generators/Contexts/SingleValueContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Genbox.FastData.Generators.Contexts;
44

55
/// <summary>Provides a context for a single value.</summary>
6-
public class SingleValueContext<TKey, TValue>(TKey key, ReadOnlyMemory<TValue> values) : IContext
6+
public sealed class SingleValueContext<TKey, TValue>(TKey key, ReadOnlyMemory<TValue> values) : IContext
77
{
88
public TKey Key { get; } = key;
99
public ReadOnlyMemory<TValue> Values { get; } = values;

0 commit comments

Comments
 (0)