Interface LinkedList<T>

All Known Implementing Classes:
LinkedList.Empty, LinkedList.NotEmpty

public sealed interface LinkedList<T> permits LinkedList.Empty<T>, LinkedList.NotEmpty<T>
"Sum Type" representation of a linked list.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    An empty list.
    static final record 
    A not empty list.