org.openapijsonschematools.client.components.schemas.ByNumber.java
public class ByNumber
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
Modifier and Type | Class and Description |
---|---|
sealed interface | ByNumber.ByNumber1Boxed sealed interface for validated payloads |
record | ByNumber.ByNumber1BoxedVoid boxed class to store validated null payloads |
record | ByNumber.ByNumber1BoxedBoolean boxed class to store validated boolean payloads |
record | ByNumber.ByNumber1BoxedNumber boxed class to store validated Number payloads |
record | ByNumber.ByNumber1BoxedString boxed class to store validated String payloads |
record | ByNumber.ByNumber1BoxedList boxed class to store validated List payloads |
record | ByNumber.ByNumber1BoxedMap boxed class to store validated Map payloads |
static class | ByNumber.ByNumber1 schema class |
public sealed interface ByNumber1Boxed
permits
ByNumber1BoxedVoid,
ByNumber1BoxedBoolean,
ByNumber1BoxedNumber,
ByNumber1BoxedString,
ByNumber1BoxedList,
ByNumber1BoxedMap
sealed interface that stores validated payloads using boxed classes
public record ByNumber1BoxedVoid
implements ByNumber1Boxed
record that stores validated null payloads, sealed permits implementation
Constructor and Description |
---|
ByNumber1BoxedVoid(Void data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Void | data() validated payload |
@Nullable Object | getData() validated payload |
public record ByNumber1BoxedBoolean
implements ByNumber1Boxed
record that stores validated boolean payloads, sealed permits implementation
Constructor and Description |
---|
ByNumber1BoxedBoolean(boolean data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
boolean | data() validated payload |
@Nullable Object | getData() validated payload |
public record ByNumber1BoxedNumber
implements ByNumber1Boxed
record that stores validated Number payloads, sealed permits implementation
Constructor and Description |
---|
ByNumber1BoxedNumber(Number data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Number | data() validated payload |
@Nullable Object | getData() validated payload |
public record ByNumber1BoxedString
implements ByNumber1Boxed
record that stores validated String payloads, sealed permits implementation
Constructor and Description |
---|
ByNumber1BoxedString(String data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
String | data() validated payload |
@Nullable Object | getData() validated payload |
public record ByNumber1BoxedList
implements ByNumber1Boxed
record that stores validated List payloads, sealed permits implementation
Constructor and Description |
---|
ByNumber1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
FrozenList<@Nullable Object> | data() validated payload |
@Nullable Object | getData() validated payload |
public record ByNumber1BoxedMap
implements ByNumber1Boxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
ByNumber1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
FrozenMap<@Nullable Object> | data() validated payload |
@Nullable Object | getData() validated payload |
public static class ByNumber1
extends JsonSchema
A schema class that validates payloads
Modifier and Type | Field and Description |
---|---|
BigDecimal | multipleOf = new BigDecimal("1.5") |
Modifier and Type | Method and Description |
---|---|
String | validate(String arg, SchemaConfiguration configuration) |
Void | validate(Void arg, SchemaConfiguration configuration) |
int | validate(int arg, SchemaConfiguration configuration) |
long | validate(long arg, SchemaConfiguration configuration) |
float | validate(float arg, SchemaConfiguration configuration) |
double | validate(double arg, SchemaConfiguration configuration) |
Number | validate(Number arg, SchemaConfiguration configuration) |
boolean | validate(boolean arg, SchemaConfiguration configuration) |
FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) |
ByNumber1BoxedString | validateAndBox(String arg, SchemaConfiguration configuration) |
ByNumber1BoxedVoid | validateAndBox(Void arg, SchemaConfiguration configuration) |
ByNumber1BoxedNumber | validateAndBox(Number arg, SchemaConfiguration configuration) |
ByNumber1BoxedBoolean | validateAndBox(boolean arg, SchemaConfiguration configuration) |
ByNumber1BoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
ByNumber1BoxedList | validateAndBox(List<?> arg, SchemaConfiguration configuration) |
ByNumber1Boxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |