Package org.apache.maven.api.settings
Class TrackableBase
java.lang.Object
org.apache.maven.api.settings.TrackableBase
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IdentifiableBase
,Settings
@Experimental
@Generated
@ThreadSafe
@Immutable
public class TrackableBase
extends Object
implements Serializable
common base class that contains code to track the source for
this instance (USER|GLOBAL)
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create TrackableBase instances. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TrackableBase.Builder
Creates a newTrackableBase
builder instance.static TrackableBase.Builder
newBuilder
(boolean withDefaults) Creates a newTrackableBase
builder instance using default values or not.static TrackableBase.Builder
newBuilder
(TrackableBase from) Creates a newTrackableBase
builder instance using the specified object as a basis.static TrackableBase.Builder
newBuilder
(TrackableBase from, boolean forceCopy) Creates a newTrackableBase
builder instance using the specified object as a basis.static TrackableBase
Creates a newTrackableBase
instance.static TrackableBase
newInstance
(boolean withDefaults) Creates a newTrackableBase
instance using default values or not.void
setSourceLevel
(String sourceLevel) with()
Creates a new builder with this object as the basis.
-
Field Details
-
USER_LEVEL
- See Also:
-
GLOBAL_LEVEL
- See Also:
-
-
Method Details
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
newInstance
Creates a newTrackableBase
instance. Equivalent tonewInstance( true )
.- Returns:
- a new
TrackableBase
- See Also:
-
newInstance
Creates a newTrackableBase
instance using default values or not. Equivalent tonewBuilder( withDefaults ).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
TrackableBase
-
newBuilder
Creates a newTrackableBase
builder instance. Equivalent tonewBuilder( true )
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newTrackableBase
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newTrackableBase
builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
.- Parameters:
from
- theTrackableBase
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newTrackableBase
builder instance using the specified object as a basis.- Parameters:
from
- theTrackableBase
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
setSourceLevel
-
getSourceLevel
-