-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default OdeseializeOrNull(R input)Deprecated.for removal since 4.8.0, usedeserializeOrNull(Object)instead.Odeserialize(R input)Deserialize a component from input of typeR.default OdeserializeOr(R input, O fallback)Deserialize a component from input of typeR.default OdeserializeOrNull(R input)Deserialize a component from input of typeR.Rserialize(I component)Serializes a component into an output of typeR.default RserializeOr(I component, R fallback)Serializes a component into an output of typeR.default RserializeOrNull(I component)Serializes a component into an output of typeR.
-
-
-
Method Detail
-
deserialize
@NotNull O deserialize(@NotNull R input)
Deserialize a component from input of typeR.- Parameters:
input- the input- Returns:
- the component
- Since:
- 4.0.0
-
deseializeOrNull
@ScheduledForRemoval(inVersion="5.0.0") @Contract(value="!null -> !null; null -> null", pure=true) @Deprecated @Nullable default O deseializeOrNull(@Nullable R input)Deprecated.for removal since 4.8.0, usedeserializeOrNull(Object)instead.Deserialize a component from input of typeR.If
inputisnull, thennullwill be returned.- Parameters:
input- the input- Returns:
- the component if
inputis non-null, otherwisenull - Since:
- 4.7.0
-
deserializeOrNull
@Contract(value="!null -> !null; null -> null", pure=true) @Nullable default O deserializeOrNull(@Nullable R input)Deserialize a component from input of typeR.If
inputisnull, thennullwill be returned.- Parameters:
input- the input- Returns:
- the component if
inputis non-null, otherwisenull - Since:
- 4.8.0
-
deserializeOr
@Contract(value="!null, _ -> !null; null, _ -> param2", pure=true) @Nullable default O deserializeOr(@Nullable R input, @Nullable O fallback)Deserialize a component from input of typeR.If
inputisnull, thenfallbackwill be returned.- Parameters:
input- the inputfallback- the fallback value- Returns:
- the component if
inputis non-null, otherwisefallback - Since:
- 4.7.0
-
serialize
@NotNull R serialize(@NotNull I component)
Serializes a component into an output of typeR.- Parameters:
component- the component- Returns:
- the output
- Since:
- 4.0.0
-
serializeOrNull
@Contract(value="!null -> !null; null -> null", pure=true) @Nullable default R serializeOrNull(@Nullable I component)Serializes a component into an output of typeR.If
componentisnull, thennullwill be returned.- Parameters:
component- the component- Returns:
- the output if
componentis non-null, otherwisenull - Since:
- 4.7.0
-
serializeOr
@Contract(value="!null, _ -> !null; null, _ -> param2", pure=true) @Nullable default R serializeOr(@Nullable I component, @Nullable R fallback)Serializes a component into an output of typeR.If
componentisnull, thenfallbackwill be returned.- Parameters:
component- the componentfallback- the fallback value- Returns:
- the output if
componentis non-null, otherwisefallback - Since:
- 4.7.0
-
-