Class ResultSet<T>

java.lang.Object
net.botwithus.rs3.game.queries.results.ResultSet<T>
All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
EntityResultSet

public sealed class ResultSet<T> extends Object implements Iterable<T> permits EntityResultSet<T>
  • Constructor Details

    • ResultSet

      public ResultSet(List<T> results)
  • Method Details

    • first

      @Nullable public T first()
    • last

      @Nullable public T last()
    • limit

      @NotNull public @NotNull ResultSet<T> limit(int num)
    • random

      @Nullable public T random()
    • isEmpty

      public boolean isEmpty()
    • stream

      public Stream<T> stream()
    • iterator

      @NotNull public @NotNull Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • size

      public int size()