This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
sealed interface ListState {} | |
interface Empty extends ListState { } | |
interface NonEmpty extends ListState { } | |
class MyList<ListStatus,E> { | |
public List<E> getDelegate() { | |
return delegate; | |
} |
OlderNewer