@Experimental @Generated @ThreadSafe @Immutable public class Repository extends RepositoryBase implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Repository.Builder
Builder class used to create Repository instances.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
RepositoryPolicy |
getReleases()
How to handle downloading of releases from this repository
|
RepositoryPolicy |
getSnapshots()
How to handle downloading of snapshots from this repository
|
static Repository.Builder |
newBuilder()
Creates a new
Repository builder instance. |
static Repository.Builder |
newBuilder(boolean withDefaults)
Creates a new
Repository builder instance using default values or not. |
static Repository.Builder |
newBuilder(Repository from)
Creates a new
Repository builder instance using the specified object as a basis. |
static Repository.Builder |
newBuilder(Repository from,
boolean forceCopy)
Creates a new
Repository builder instance using the specified object as a basis. |
static Repository |
newInstance()
Creates a new
Repository instance. |
static Repository |
newInstance(boolean withDefaults)
Creates a new
Repository instance using default values or not. |
Repository.Builder |
with()
Creates a new builder with this object as the basis.
|
Repository |
withId(String id)
Creates a new
Repository instance using the specified id. |
Repository |
withLayout(String layout)
Creates a new
Repository instance using the specified layout. |
Repository |
withName(String name)
Creates a new
Repository instance using the specified name. |
Repository |
withReleases(RepositoryPolicy releases)
Creates a new
Repository instance using the specified releases. |
Repository |
withSnapshots(RepositoryPolicy snapshots)
Creates a new
Repository instance using the specified snapshots. |
Repository |
withUrl(String url)
Creates a new
Repository instance using the specified url. |
getId, getLayout, getName, getUrl, newBuilder, newBuilder
public RepositoryPolicy getReleases()
RepositoryPolicy
public RepositoryPolicy getSnapshots()
RepositoryPolicy
@Nonnull public Repository.Builder with()
with
in class RepositoryBase
Builder
@Nonnull public Repository withId(String id)
Repository
instance using the specified id.withId
in class RepositoryBase
id
- the new String
to useRepository
with the specified id@Nonnull public Repository withName(String name)
Repository
instance using the specified name.withName
in class RepositoryBase
name
- the new String
to useRepository
with the specified name@Nonnull public Repository withUrl(String url)
Repository
instance using the specified url.withUrl
in class RepositoryBase
url
- the new String
to useRepository
with the specified url@Nonnull public Repository withLayout(String layout)
Repository
instance using the specified layout.withLayout
in class RepositoryBase
layout
- the new String
to useRepository
with the specified layout@Nonnull public Repository withReleases(RepositoryPolicy releases)
Repository
instance using the specified releases.releases
- the new RepositoryPolicy
to useRepository
with the specified releases@Nonnull public Repository withSnapshots(RepositoryPolicy snapshots)
Repository
instance using the specified snapshots.snapshots
- the new RepositoryPolicy
to useRepository
with the specified snapshots@Nonnull public static Repository newInstance()
Repository
instance.
Equivalent to newInstance( true )
.Repository
newInstance(boolean)
@Nonnull public static Repository newInstance(boolean withDefaults)
Repository
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedRepository
@Nonnull public static Repository.Builder newBuilder()
Repository
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Repository.Builder newBuilder(boolean withDefaults)
Repository
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Repository.Builder newBuilder(Repository from)
Repository
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Repository
instance to use as a basisBuilder
@Nonnull public static Repository.Builder newBuilder(Repository from, boolean forceCopy)
Repository
builder instance using the specified object as a basis.from
- the Repository
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
public boolean equals(Object obj)
equals
in class RepositoryBase
RepositoryBase.equals(java.lang.Object)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.