public class ReleaseIdFilter extends Object
ReleaseIds based on provided constraints (groupId, artifactId, version).
This implementation compares the expected parts for equality (e.g. the filter accepts the releaseId in case the groupId/artifactId/version exactly matches the configured one). It is also possible to filter only on a subset of the constraints (e.g. only on groupId).
The class comes with ReleaseIdFilter.Builder which can be used to easily create all kinds of filters.
| Modifier and Type | Class and Description |
|---|---|
static class |
ReleaseIdFilter.Builder |
| Modifier and Type | Field and Description |
|---|---|
static ReleaseIdFilter |
ACCEPT_ALL |
| Constructor and Description |
|---|
ReleaseIdFilter(ReleaseId releaseId) |
ReleaseIdFilter(String groupId,
String artifactId,
String version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ReleaseId releaseId)
Checks whether the specified releaseId matches (is accepted by) this filter.
|
boolean |
equals(Object o) |
String |
getArtifactId() |
String |
getGroupId() |
String |
getVersion() |
int |
hashCode() |
String |
toString() |
public static final ReleaseIdFilter ACCEPT_ALL
public ReleaseIdFilter(ReleaseId releaseId)
public String getGroupId()
public String getArtifactId()
public String getVersion()
public boolean accept(ReleaseId releaseId)
releaseId - releaseId to match againstCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.