IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IDeque.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Diagnostics.CodeAnalysis;
4
6{
7
8 internal interface IDeque<T> : IReadOnlyCollection<T>
9 {
10
14 void Clear();
15
19 bool IsEmpty { get; }
20
24 void InsertFirst(T item);
25
31 bool TryRemoveFirst([MaybeNullWhen(false)] out T result);
32
38 T RemoveFirst();
39
47 bool RemoveFirst(T item);
48
52 void InsertLast(T item);
53
59 bool TryRemoveLast([MaybeNullWhen(false)] out T result);
60
65 T RemoveLast();
66
72 bool TryPeekFirst([MaybeNullWhen(false)] out T result);
73
79 T PeekFirst();
80
86 bool TryPeekLast([MaybeNullWhen(false)] out T result);
87
93 T PeekLast();
94
99 void CopyTo(T[] a);
100
101 }
102
103}