Interface SplicingTableIotaRendererParser<T extends SplicingTableIotaRendererProvider>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface SplicingTableIotaRendererParser<T extends SplicingTableIotaRendererProvider>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends SplicingTableIotaRendererProvider>
@NotNull SplicingTableIotaRendererParser<T>of(T instance) Creates a parser that always returns the given instance.Attempts to parse the JSON data and return a provider for an iota renderer.
-
Method Details
-
parse
@NotNull T parse(@NotNull @NotNull com.google.gson.Gson gson, @NotNull @NotNull com.google.gson.JsonObject jsonObject, @Nullable T parent) Attempts to parse the JSON data and return a provider for an iota renderer. ThrowsIllegalArgumentExceptionorJsonParseExceptionif the input is invalid. -
of
@NotNull static <T extends SplicingTableIotaRendererProvider> @NotNull SplicingTableIotaRendererParser<T> of(T instance) Creates a parser that always returns the given instance.
-