You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 MutableStack instance from the iterable. Could you help me pointing to the right factory method to create this instance?
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.
There is a method toStack on
OrderedIterable
, but no equivalent toStack method onOrdered<Primitive>Iterable.
The text was updated successfully, but these errors were encountered: