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 Summary
Modifier and TypeMethodDescriptionbuild()
withResource
(ResourceKey resource, long amount, TrackedResource trackedResource) Adds a resource in the backing and view list.
-
Method Details
-
withResource
GridViewBuilder withResource(ResourceKey resource, long amount, @Nullable TrackedResource trackedResource) Adds a resource in the backing and view list.- Parameters:
resource
- the resourceamount
- the amounttrackedResource
- the tracked resource, can be null- Returns:
- this builder
-
build
GridView build()- Returns:
- a
GridView
with the specified resources
-