Class Slice<T>

java.lang.Object
co.yellowdog.platform.interaction.pagination.Slice<T>

public final class Slice<T> extends Object
  • Method Details

    • empty

      public static <T> Slice<T> empty()
    • of

      public static <T> Slice<T> of(List<T> items, String nextId)
    • of

      public static <T> Slice<T> of(List<T> items)
    • size

      public int size()
    • getItems

      public List<T> getItems()
    • getNextSliceId

      public String getNextSliceId()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object