Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[collections-dev] Visibility of AbstractImmutableList + sublist method

I am trying to build a sublist from a ListIterable. I found no clear way to do this other than to try to cast to an implementation that supports sublist and falling back on a range copy if the casts fail. However, unlike AbstractMutableList, AbstractImmutableList is not public and thus not visible to my code. 

First, is this by design? And second, is there a better way to get a "view" of a "slice" of a ListIterable that I am missing?

Thanks,
Andrew White

Back to the top