Class Service<T>

java.lang.Object
io.github.headlesshq.headlessmc.launcher.Service<T>
All Implemented Interfaces:
Refreshable, Iterable<T>
Direct Known Subclasses:
AbstractDownloadService, ConfigService, LazyService

public abstract class Service<T> extends Object implements Refreshable, Iterable<T>
  • Field Details

  • Constructor Details

    • Service

      public Service()
  • Method Details

    • refresh

      public static <S, T extends Service<S>> T refresh(T service)
    • update

      protected abstract Collection<T> update()
    • refresh

      public void refresh()
      Specified by:
      refresh in interface Refreshable
    • iterator

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

      public Stream<T> stream()
    • isEmpty

      public boolean isEmpty()
    • add

      public void add(T value)
    • clear

      public void clear()
    • size

      public int size()