On Fri, 26 Jul 2024 21:06:31 GMT, Turkhan wrote:
> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
> equivalent to Stack's `peek()` method since both of them don't throw when a
> collection is empty. This is not the case with the current `getFirst()`
> method.
>
>
On Fri, 26 Jul 2024 21:06:31 GMT, Turkhan wrote:
> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
> equivalent to Stack's `peek()` method since both of them don't throw when a
> collection is empty. This is not the case with the current `getFirst()`
> method.
>
>
On Fri, 26 Jul 2024 21:06:31 GMT, Turkhan wrote:
> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
> equivalent to Stack's `peek()` method since both of them don't throw when a
> collection is empty. This is not the case with the current `getFirst()`
> method.
>
>
On Wed, 7 Aug 2024 21:44:09 GMT, Chen Liang wrote:
>> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
>> equivalent to Stack's `peek()` method since both of them don't throw when a
>> collection is empty. This is not the case with the current `getFirst()`
>> method.
On Fri, 26 Jul 2024 21:06:31 GMT, Turkhan wrote:
> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
> equivalent to Stack's `peek()` method since both of them don't throw when a
> collection is empty. This is not the case with the current `getFirst()`
> method.
>
>
On Tue, 6 Aug 2024 06:48:52 GMT, Per Minborg wrote:
>> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
>> equivalent to Stack's `peek()` method since both of them don't throw when a
>> collection is empty. This is not the case with the current `getFirst()`
>> method
On Fri, 26 Jul 2024 21:06:31 GMT, Turkhan wrote:
> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
> equivalent to Stack's `peek()` method since both of them don't throw when a
> collection is empty. This is not the case with the current `getFirst()`
> method.
>
>
This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an
equivalent to Stack's `peek()` method since both of them don't throw when a
collection is empty. This is not the case with the current `getFirst()` method.
Please let me know if I have to fix something in the PR. Will ap