Class CommitBasedList<T>

java.lang.Object
net.neoforged.testframework.client.CommitBasedList<T>
All Implemented Interfaces:
Iterable<T>

public class CommitBasedList<T> extends Object implements Iterable<T>
  • Field Details

    • backend

      private final List<T> backend
    • currentProgress

      private List<T> currentProgress
  • Constructor Details

    • CommitBasedList

      public CommitBasedList(List<T> backend)
  • Method Details

    • push

      public void push()
    • revert

      public void revert()
    • popAndCommit

      public void popAndCommit()
    • currentProgress

      public List<T> currentProgress()
    • addDirectly

      public void addDirectly(T value)
    • add

      public void add(T value)
    • get

      public List<T> get()
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>