@Generated(value={"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class PreloadGraphConfigBuilder
extends java.lang.Object
PreloadGraphConfig
.Constructor and Description |
---|
PreloadGraphConfigBuilder()
Constructs an empty PreloadGraphConfigBuilder
|
PreloadGraphConfigBuilder(java.util.Map<PreloadGraphConfig.Field,java.lang.Object> values)
Constructs a PreloadGraphConfigBuilder initialized with the values from the given map
|
PreloadGraphConfigBuilder(PreloadGraphConfig config)
Constructs a PreloadGraphConfigBuilder initialized with the values from the given config
|
PreloadGraphConfigBuilder(PreloadGraphConfigBuilder builder)
Constructs a PreloadGraphConfigBuilder initialized with the values from the given builder
|
Modifier and Type | Method and Description |
---|---|
PreloadGraphConfig |
build()
Builds the PreloadGraphConfig with a
parentPath of null . |
PreloadGraphConfig |
build(java.lang.String parentPath)
Builds the PreloadGraphConfig.
|
static PreloadGraphConfig |
buildPreloadGraphConfig(java.util.function.Consumer<PreloadGraphConfigBuilder> builderSetup)
Builds a
PreloadGraphConfig in-place |
PreloadGraphConfigBuilder |
clear()
Clears all values from the builder
|
java.util.Map<PreloadGraphConfig.Field,java.lang.Object> |
getValues() |
PreloadGraphConfigBuilder |
putAll(java.util.Map<PreloadGraphConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.
|
PreloadGraphConfigBuilder |
putAll(PreloadGraphConfig config)
Puts all values from the given config into this builder
|
PreloadGraphConfigBuilder |
setName(java.lang.String name)
preloaded graph name
|
PreloadGraphConfigBuilder |
setPath(java.lang.String path)
uri to graph config file
|
PreloadGraphConfigBuilder |
setPublish(boolean publish)
whether or not this preloaded graph should be published.
|
PreloadGraphConfigBuilder |
setPublishWithSnapshots(boolean publishWithSnapshots)
whether or not this preloaded graph should be published together with its snapshots.
|
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
public PreloadGraphConfigBuilder()
public PreloadGraphConfigBuilder(java.util.Map<PreloadGraphConfig.Field,java.lang.Object> values)
values
- a map containing configuration valuespublic PreloadGraphConfigBuilder(PreloadGraphConfig config)
config
- the configuration to take the values frompublic PreloadGraphConfigBuilder(PreloadGraphConfigBuilder builder)
builder
- the builder to take the values frompublic PreloadGraphConfig build()
parentPath
of null
.build(String)
public PreloadGraphConfig build(java.lang.String parentPath)
parentPath
- if not null, resolves relative paths against this parentPathpublic static PreloadGraphConfig buildPreloadGraphConfig(java.util.function.Consumer<PreloadGraphConfigBuilder> builderSetup)
PreloadGraphConfig
in-placebuilderSetup
- a consumer to setup a newly created PreloadGraphConfig
public PreloadGraphConfigBuilder clear()
public java.util.Map<PreloadGraphConfig.Field,java.lang.Object> getValues()
public PreloadGraphConfigBuilder putAll(java.util.Map<PreloadGraphConfig.Field,java.lang.Object> values)
values
- the values to put in the builderpublic PreloadGraphConfigBuilder putAll(PreloadGraphConfig config)
config
- the config to take the values frompublic PreloadGraphConfigBuilder setName(java.lang.String name)
public PreloadGraphConfigBuilder setPath(java.lang.String path)
public PreloadGraphConfigBuilder setPublish(boolean publish)
public PreloadGraphConfigBuilder setPublishWithSnapshots(boolean publishWithSnapshots)
public java.io.InputStream toInputStream()
InputStream
representing the configpublic java.lang.String toString()
toString
in class java.lang.Object