Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
52 lines (40 loc) · 2.2 KB

File metadata and controls

52 lines (40 loc) · 2.2 KB

BooleanSchema

org.openapijsonschematools.client.components.schemas.BooleanSchema.java public class BooleanSchema

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

Nested Class Summary

Modifier and Type Class and Description
sealed interface BooleanSchema.BooleanSchema1Boxed
sealed interface for validated payloads
record BooleanSchema.BooleanSchema1BoxedBoolean
boxed class to store validated boolean payloads
static class BooleanSchema.BooleanSchema1
schema class

BooleanSchema1Boxed

public sealed interface BooleanSchema1Boxed
permits
BooleanSchema1BoxedBoolean

sealed interface that stores validated payloads using boxed classes

BooleanSchema1BoxedBoolean

public record BooleanSchema1BoxedBoolean
implements BooleanSchema1Boxed

record that stores validated boolean payloads, sealed permits implementation

Constructor Summary

Constructor and Description
BooleanSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
boolean data()
validated payload
@Nullable Object getData()
validated payload

BooleanSchema1

public static class BooleanSchema1
extends BooleanJsonSchema.BooleanJsonSchema1

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.client.schemas.BooleanJsonSchema.BooleanJsonSchema1
validate
validateAndBox

[Back to top] [Back to Component Schemas] [Back to README]