Package org.apache.maven.api.toolchain
Class TrackableBase
java.lang.Object
org.apache.maven.api.toolchain.TrackableBase
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
- Direct Known Subclasses:
- PersistedToolchains,- ToolchainModel
@Experimental
@Generated
@ThreadSafe
@Immutable
public class TrackableBase
extends Object
implements Serializable, InputLocationTracker
Common base class that contains code to track the source for this instance.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create TrackableBase instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedTrackableBase(TrackableBase.Builder builder) Constructor for this class, to be called from its subclasses andTrackableBase.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionGets the input location that caused this model to be read.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.static TrackableBase.BuilderCreates a newTrackableBasebuilder instance.static TrackableBase.BuildernewBuilder(boolean withDefaults) Creates a newTrackableBasebuilder instance using default values or not.static TrackableBase.BuildernewBuilder(TrackableBase from) Creates a newTrackableBasebuilder instance using the specified object as a basis.static TrackableBase.BuildernewBuilder(TrackableBase from, boolean forceCopy) Creates a newTrackableBasebuilder instance using the specified object as a basis.static TrackableBaseCreates a newTrackableBaseinstance.static TrackableBasenewInstance(boolean withDefaults) Creates a newTrackableBaseinstance using default values or not.with()Creates a new builder with this object as the basis.
- 
Constructor Details- 
TrackableBaseConstructor for this class, to be called from its subclasses andTrackableBase.Builder.- See Also:
 
 
- 
- 
Method Details- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
getLocationKeysGets the keys of the locations of the input source.
- 
getImportedFromGets the input location that caused this model to be read.
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
newInstanceCreates a newTrackableBaseinstance. Equivalent tonewInstance(true).- Returns:
- a new TrackableBase
- See Also:
 
- 
newInstanceCreates a newTrackableBaseinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new TrackableBase
 
- 
newBuilderCreates a newTrackableBasebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newTrackableBasebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newTrackableBasebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- TrackableBaseinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newTrackableBasebuilder instance using the specified object as a basis.- Parameters:
- from- the- TrackableBaseinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-