Class RepresentationSelection.Builder
java.lang.Object
com.kazforge.jsonapi.representation.RepresentationSelection.Builder
- Enclosing class:
RepresentationSelection
Mutable builder whose
build() result defensively copies all supplied values.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutable representation selection.Selects fields for one resource type.Selects fields for one resource type.include(IncludePath path) Adds one already-validated include path.Parses and adds one dotted include path usingIncludePath's validation.Records an explicit include request without adding an include path.
-
Method Details
-
include
Parses and adds one dotted include path usingIncludePath's validation. -
include
Adds one already-validated include path. -
includeRequested
Records an explicit include request without adding an include path. -
fields
Selects fields for one resource type. Repeated names retain their first-seen order. -
fields
Selects fields for one resource type. Repeated names retain their first-seen order. -
build
Builds an immutable representation selection.
-