Package org.apache.maven.api.settings
Class IdentifiableBase
java.lang.Object
org.apache.maven.api.settings.TrackableBase
org.apache.maven.api.settings.IdentifiableBase
- All Implemented Interfaces:
Serializable
,InputLocationTracker
- Direct Known Subclasses:
Mirror
,Profile
,Proxy
,RepositoryBase
,Server
@Experimental
@Generated
@ThreadSafe
@Immutable
public class IdentifiableBase
extends TrackableBase
implements Serializable, InputLocationTracker
Base class for
Mirror
, Profile
, Proxy
and Server
.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create IdentifiableBase instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
IdentifiableBase
(IdentifiableBase.Builder builder) Constructor for this class, to be called from its subclasses andIdentifiableBase.Builder
. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Item identifier.static IdentifiableBase.Builder
Creates a newIdentifiableBase
builder instance.static IdentifiableBase.Builder
newBuilder
(boolean withDefaults) Creates a newIdentifiableBase
builder instance using default values or not.static IdentifiableBase.Builder
newBuilder
(IdentifiableBase from) Creates a newIdentifiableBase
builder instance using the specified object as a basis.static IdentifiableBase.Builder
newBuilder
(IdentifiableBase from, boolean forceCopy) Creates a newIdentifiableBase
builder instance using the specified object as a basis.static IdentifiableBase
Creates a newIdentifiableBase
instance.static IdentifiableBase
newInstance
(boolean withDefaults) Creates a newIdentifiableBase
instance using default values or not.with()
Creates a new builder with this object as the basis.Creates a newIdentifiableBase
instance using the specified id.Methods inherited from class org.apache.maven.api.settings.TrackableBase
getImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, newBuilder, newBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.settings.InputLocationTracker
getLocation
-
Constructor Details
-
IdentifiableBase
Constructor for this class, to be called from its subclasses andIdentifiableBase.Builder
.- See Also:
-
-
Method Details
-
getId
Item identifier.- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classTrackableBase
- Returns:
- a
Builder
-
withId
Creates a newIdentifiableBase
instance using the specified id.- Parameters:
id
- the newString
to use- Returns:
- a
IdentifiableBase
with the specified id
-
newInstance
Creates a newIdentifiableBase
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
IdentifiableBase
- See Also:
-
newInstance
Creates a newIdentifiableBase
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
IdentifiableBase
-
newBuilder
Creates a newIdentifiableBase
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newIdentifiableBase
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 newIdentifiableBase
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theIdentifiableBase
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
@Nonnull public static IdentifiableBase.Builder newBuilder(IdentifiableBase from, boolean forceCopy) Creates a newIdentifiableBase
builder instance using the specified object as a basis.- Parameters:
from
- theIdentifiableBase
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-