@Experimental @Generated @ThreadSafe @Immutable public class PersistedToolchains extends TrackableBase implements Serializable
<toolchains>
element is the root of the descriptor.
The following table lists all of the possible child elements.Modifier and Type | Class and Description |
---|---|
static class |
PersistedToolchains.Builder
Builder class used to create PersistedToolchains instances.
|
GLOBAL_LEVEL, USER_LEVEL
Modifier and Type | Method and Description |
---|---|
String |
getModelEncoding() |
List<ToolchainModel> |
getToolchains()
The toolchain instance definition.
|
static PersistedToolchains.Builder |
newBuilder()
Creates a new
PersistedToolchains builder instance. |
static PersistedToolchains.Builder |
newBuilder(boolean withDefaults)
Creates a new
PersistedToolchains builder instance using default values or not. |
static PersistedToolchains.Builder |
newBuilder(PersistedToolchains from)
Creates a new
PersistedToolchains builder instance using the specified object as a basis. |
static PersistedToolchains.Builder |
newBuilder(PersistedToolchains from,
boolean forceCopy)
Creates a new
PersistedToolchains builder instance using the specified object as a basis. |
static PersistedToolchains |
newInstance()
Creates a new
PersistedToolchains instance. |
static PersistedToolchains |
newInstance(boolean withDefaults)
Creates a new
PersistedToolchains instance using default values or not. |
PersistedToolchains.Builder |
with()
Creates a new builder with this object as the basis.
|
PersistedToolchains |
withToolchains(Collection<ToolchainModel> toolchains)
Creates a new
PersistedToolchains instance using the specified toolchains. |
getSourceLevel, newBuilder, newBuilder, setSourceLevel
public String getModelEncoding()
@Nonnull public List<ToolchainModel> getToolchains()
List<ToolchainModel>
@Nonnull public PersistedToolchains.Builder with()
with
in class TrackableBase
Builder
@Nonnull public PersistedToolchains withToolchains(Collection<ToolchainModel> toolchains)
PersistedToolchains
instance using the specified toolchains.toolchains
- the new Collection<ToolchainModel>
to usePersistedToolchains
with the specified toolchains@Nonnull public static PersistedToolchains newInstance()
PersistedToolchains
instance.
Equivalent to newInstance( true )
.PersistedToolchains
newInstance(boolean)
@Nonnull public static PersistedToolchains newInstance(boolean withDefaults)
PersistedToolchains
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedPersistedToolchains
@Nonnull public static PersistedToolchains.Builder newBuilder()
PersistedToolchains
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static PersistedToolchains.Builder newBuilder(boolean withDefaults)
PersistedToolchains
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static PersistedToolchains.Builder newBuilder(PersistedToolchains from)
PersistedToolchains
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the PersistedToolchains
instance to use as a basisBuilder
@Nonnull public static PersistedToolchains.Builder newBuilder(PersistedToolchains from, boolean forceCopy)
PersistedToolchains
builder instance using the specified object as a basis.from
- the PersistedToolchains
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.