@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableRecordings extends Object implements Recordings
Recordings.
Use the builder to create immutable instances:
ImmutableRecordings.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRecordings.Builder
Builds instances of type
ImmutableRecordings. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableRecordings.Builder |
builder()
Creates a builder for
ImmutableRecordings. |
Map<String,String> |
classes() |
static ImmutableRecordings |
copyOf(Recordings instance)
Creates an immutable copy of a
Recordings value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRecordings that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
templateReference, linesOfCode, lines, methodsCalled, classes, resources, output, replacementNotFoundFallback. |
List<HasLine> |
lines() |
List<String> |
linesOfCode() |
Map<String,CalledMethod> |
methodsCalled() |
Map<String,String> |
output() |
Optional<BiFunction<String,Set<String>,String>> |
replacementNotFoundFallback() |
Map<String,String> |
resources() |
TemplateReference |
templateReference() |
String |
toString()
Prints the immutable value
Recordings with attribute values. |
ImmutableRecordings |
withClasses(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
classes map with the specified map. |
ImmutableRecordings |
withLines(HasLine... elements)
Copy the current immutable object with elements that replace the content of
lines. |
ImmutableRecordings |
withLines(Iterable<? extends HasLine> elements)
Copy the current immutable object with elements that replace the content of
lines. |
ImmutableRecordings |
withLinesOfCode(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
linesOfCode. |
ImmutableRecordings |
withLinesOfCode(String... elements)
Copy the current immutable object with elements that replace the content of
linesOfCode. |
ImmutableRecordings |
withMethodsCalled(Map<String,? extends CalledMethod> entries)
Copy the current immutable object by replacing the
methodsCalled map with the specified map. |
ImmutableRecordings |
withOutput(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
output map with the specified map. |
ImmutableRecordings |
withReplacementNotFoundFallback(BiFunction<String,Set<String>,String> value)
Copy the current immutable object by setting a present value for the optional
replacementNotFoundFallback attribute. |
ImmutableRecordings |
withReplacementNotFoundFallback(Optional<? extends BiFunction<String,Set<String>,String>> optional)
Copy the current immutable object by setting an optional value for the
replacementNotFoundFallback attribute. |
ImmutableRecordings |
withResources(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
resources map with the specified map. |
ImmutableRecordings |
withTemplateReference(TemplateReference value)
Copy the current immutable object by setting a value for the
templateReference attribute. |
public TemplateReference templateReference()
templateReference in interface RecordingstemplateReference attributepublic List<String> linesOfCode()
linesOfCode in interface RecordingslinesOfCode attributepublic List<HasLine> lines()
lines in interface Recordingslines attributepublic Map<String,CalledMethod> methodsCalled()
methodsCalled in interface RecordingsmethodsCalled attributepublic Map<String,String> classes()
classes in interface Recordingsclasses attributepublic Map<String,String> resources()
resources in interface Recordingsresources attributepublic Map<String,String> output()
output in interface Recordingsoutput attributepublic Optional<BiFunction<String,Set<String>,String>> replacementNotFoundFallback()
replacementNotFoundFallback in interface RecordingsreplacementNotFoundFallback attributepublic final ImmutableRecordings withTemplateReference(TemplateReference value)
templateReference attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for templateReferencethis objectpublic final ImmutableRecordings withLinesOfCode(String... elements)
linesOfCode.elements - The elements to setthis objectpublic final ImmutableRecordings withLinesOfCode(Iterable<String> elements)
linesOfCode.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of linesOfCode elements to setthis objectpublic final ImmutableRecordings withLines(HasLine... elements)
lines.elements - The elements to setthis objectpublic final ImmutableRecordings withLines(Iterable<? extends HasLine> elements)
lines.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of lines elements to setthis objectpublic final ImmutableRecordings withMethodsCalled(Map<String,? extends CalledMethod> entries)
methodsCalled map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the methodsCalled mapthis objectpublic final ImmutableRecordings withClasses(Map<String,? extends String> entries)
classes map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the classes mapthis objectpublic final ImmutableRecordings withResources(Map<String,? extends String> entries)
resources map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the resources mapthis objectpublic final ImmutableRecordings withOutput(Map<String,? extends String> entries)
output map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the output mapthis objectpublic final ImmutableRecordings withReplacementNotFoundFallback(BiFunction<String,Set<String>,String> value)
replacementNotFoundFallback attribute.value - The value for replacementNotFoundFallbackthis objectpublic final ImmutableRecordings withReplacementNotFoundFallback(Optional<? extends BiFunction<String,Set<String>,String>> optional)
replacementNotFoundFallback attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for replacementNotFoundFallbackthis objectpublic boolean equals(Object another)
ImmutableRecordings that have equal attribute values.public int hashCode()
templateReference, linesOfCode, lines, methodsCalled, classes, resources, output, replacementNotFoundFallback.public String toString()
Recordings with attribute values.public static ImmutableRecordings copyOf(Recordings instance)
Recordings value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableRecordings.Builder builder()
ImmutableRecordings.
ImmutableRecordings.builder()
.templateReference(de.flapdoodle.testdoc.TemplateReference) // required templateReference
.addLinesOfCode|addAllLinesOfCode(String) // linesOfCode elements
.addLines|addAllLines(de.flapdoodle.testdoc.HasLine) // lines elements
.putMethodsCalled|putAllMethodsCalled(String => de.flapdoodle.testdoc.CalledMethod) // methodsCalled mappings
.putClasses|putAllClasses(String => String) // classes mappings
.putResources|putAllResources(String => String) // resources mappings
.putOutput|putAllOutput(String => String) // output mappings
.replacementNotFoundFallback(function.BiFunction<String, Set<String>, String>) // optional replacementNotFoundFallback
.build();
builder in interface RecordingsCopyright © 2022. All rights reserved.