@Experimental @Generated @ThreadSafe @Immutable public class TrackableBase extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TrackableBase.Builder
Builder class used to create TrackableBase instances.
|
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_LEVEL |
static String |
USER_LEVEL |
Modifier and Type | Method and Description |
---|---|
String |
getSourceLevel() |
static TrackableBase.Builder |
newBuilder()
Creates a new
TrackableBase builder instance. |
static TrackableBase.Builder |
newBuilder(boolean withDefaults)
Creates a new
TrackableBase builder instance using default values or not. |
static TrackableBase.Builder |
newBuilder(TrackableBase from)
Creates a new
TrackableBase builder instance using the specified object as a basis. |
static TrackableBase.Builder |
newBuilder(TrackableBase from,
boolean forceCopy)
Creates a new
TrackableBase builder instance using the specified object as a basis. |
static TrackableBase |
newInstance()
Creates a new
TrackableBase instance. |
static TrackableBase |
newInstance(boolean withDefaults)
Creates a new
TrackableBase instance using default values or not. |
void |
setSourceLevel(String sourceLevel) |
TrackableBase.Builder |
with()
Creates a new builder with this object as the basis.
|
public static final String USER_LEVEL
public static final String GLOBAL_LEVEL
@Nonnull public TrackableBase.Builder with()
Builder
@Nonnull public static TrackableBase newInstance()
TrackableBase
instance.
Equivalent to newInstance( true )
.TrackableBase
newInstance(boolean)
@Nonnull public static TrackableBase newInstance(boolean withDefaults)
TrackableBase
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedTrackableBase
@Nonnull public static TrackableBase.Builder newBuilder()
TrackableBase
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static TrackableBase.Builder newBuilder(boolean withDefaults)
TrackableBase
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static TrackableBase.Builder newBuilder(TrackableBase from)
TrackableBase
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the TrackableBase
instance to use as a basisBuilder
@Nonnull public static TrackableBase.Builder newBuilder(TrackableBase from, boolean forceCopy)
TrackableBase
builder instance using the specified object as a basis.from
- the TrackableBase
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
public void setSourceLevel(String sourceLevel)
public String getSourceLevel()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.