Interface GridViewBuilder

All Known Implementing Classes:
GridViewBuilderImpl

@API(status=STABLE, since="2.0.0-milestone.2.4") public interface GridViewBuilder
Constructs a grid view, based on an initial set of resources.
  • Method Details

    • withResource

      GridViewBuilder withResource(ResourceKey resource, long amount, @Nullable TrackedResource trackedResource)
      Adds a resource in the backing and view list.
      Parameters:
      resource - the resource
      amount - the amount
      trackedResource - the tracked resource, can be null
      Returns:
      this builder
    • build

      GridView build()
      Returns:
      a GridView with the specified resources