Interface StackAllocator<T extends StackAllocator<T>>

All Superinterfaces:
SegmentAllocator
All Known Implementing Classes:
SegmentStack

public interface StackAllocator<T extends StackAllocator<T>> extends SegmentAllocator
A SegmentAllocator that supports stack-like push/pop functionality.
  • Method Details

    • push

      T push()
      Pushes a new stack frame and returns this allocator.
    • pop

      T pop()
      Pops the current stack frame and returns this allocator.