Add toStack to Ordered primitive Iterable
There is a method toStack on OrderedIterable, but no equivalent toStack method on Ordered<Primitive>Iterable.
@donraab - I'd like to work on this. Can you please assign it to me?
Hi @DineshPurushothamacharya, thanks for volunteering! I've assigned it to you.
Hello @donraab,
So far I understand that I need to update orderedPrimitiveIterable.stg file like below. correct me if am wrong.
default Mutable<name>Stack toStack()
{
return
}
I have a question on creating the Mutable
Hi @DineshPurushothamacharya, the static factories are not available in the interfaces for primitive collections, so you will not be able to implement this in a default method. You can throw UnsupportedOperationException in the default method, and then implement it in the specific implementations.
Hello @donraab ,
I have created the below PR [1] for this issue. Could you please review it ?
[1] : https://github.com/eclipse/eclipse-collections/pull/1068