Compare commits

...

2 Commits

Author SHA1 Message Date
amacocian 5cb4b3a512 Removed a mistake in code 2019-07-11 09:49:00 +03:00
amacocian e8c9e682ed Marked class as sealed 2019-07-11 09:46:22 +03:00
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ namespace SystemExtensions.Collections
/// </summary>
/// <typeparam name="T">Provided type.</typeparam>
[Serializable]
public class AVLTree<T> : ICollection<T> where T : IComparable<T>
public sealed class AVLTree<T> : ICollection<T> where T : IComparable<T>
{
#region Fields
[Serializable]
+1 -1
View File
@@ -12,7 +12,7 @@ namespace SystemExtensions.Collections
/// </summary>
/// <typeparam name="T">Provided type.</typeparam>
[Serializable]
public class BinaryHeap<T> : IEnumerable<T> where T : IComparable<T>
public sealed class BinaryHeap<T> : IEnumerable<T> where T : IComparable<T>
{
#region Fields
T[] items;
@@ -12,7 +12,7 @@ namespace SystemExtensions.Collections
/// </summary>
/// <typeparam name="T">Provided type</typeparam>
[Serializable]
public class FibonacciHeap<T> : IEnumerable<T> where T : IComparable<T>
public sealed class FibonacciHeap<T> : IEnumerable<T> where T : IComparable<T>
{
#region Fields
private FibonacciNode<T> root;
@@ -462,7 +462,7 @@ namespace SystemExtensions.Collections
#endregion
}
[Serializable]
internal class FibonacciNode<T>
internal sealed class FibonacciNode<T>
{
#region Fields
private FibonacciNode<T> previous;
@@ -13,7 +13,7 @@ namespace SystemExtensions.Collections
/// </summary>
/// <typeparam name="T">Provided type.</typeparam>
[Serializable]
public class PriorityQueue<T> : IQueue<T> where T : IComparable<T>
public sealed class PriorityQueue<T> : IQueue<T> where T : IComparable<T>
{
#region Fields
private BinaryHeap<T> binaryHeap;
+1 -1
View File
@@ -12,7 +12,7 @@ namespace SystemExtensions.Collections
/// </summary>
/// <typeparam name="T">Provided type.</typeparam>
[Serializable]
public class SkipList<T> : ICollection<T> where T : IComparable<T>
public sealed class SkipList<T> : ICollection<T> where T : IComparable<T>
{
#region Fields
[Serializable]
+1 -1
View File
@@ -12,7 +12,7 @@ namespace SystemExtensions.Collections
/// </summary>
/// <typeparam name="T">Provided type.</typeparam>
[Serializable]
public class Treap<T> : ICollection<T> where T : IComparable<T>
public sealed class Treap<T> : ICollection<T> where T : IComparable<T>
{
#region Fields
[Serializable]