| Modifier and Type | Method and Description |
|---|---|
Registry<I> |
build()
Creates a new Registry with the registered items.
|
static <I> RegistryBuilder<I> |
create()
Creates a new RegistryBuilder.
|
RegistryBuilder<I> |
register(String id,
I item)
Registers the given item for the given ID.
|
String |
toString() |
public static <I> RegistryBuilder<I> create()
I - the type of Registry values.public RegistryBuilder<I> register(String id, I item)
id - The ID key, converted to lower-case.item - The item to register.public Registry<I> build()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.