Uses of Enum
org.codehaus.mojo.versions.api.Segment
Packages that use Segment
Package
Description
-
Uses of Segment in org.codehaus.mojo.versions.api
Methods in org.codehaus.mojo.versions.api that return SegmentModifier and TypeMethodDescriptionstatic SegmentSegment.of(int index) static SegmentReturns the enum constant of this type with the specified name.static Segment[]Segment.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.codehaus.mojo.versions.api with parameters of type SegmentModifier and TypeMethodDescriptionbooleanReturns true if the given segment is more major than the otherMethod parameters in org.codehaus.mojo.versions.api with type arguments of type SegmentModifier and TypeMethodDescription<V extends AbstractVersionDetails,R>
RArtifactVersionsCache.get(V artifactVersions, Optional<Segment> updateScope, boolean allowSnapshots) Returns the required information for the givenArtifactVersionsobject and the given update scope.final org.apache.maven.artifact.versioning.ArtifactVersion[]AbstractVersionDetails.getAllUpdates(Optional<Segment> updateScope, boolean includeSnapshots) final org.apache.maven.artifact.versioning.ArtifactVersion[]AbstractVersionDetails.getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, Optional<Segment> updateScope, boolean includeSnapshots) org.apache.maven.artifact.versioning.ArtifactVersion[]VersionDetails.getAllUpdates(Optional<Segment> updateScope, boolean includeSnapshots) Returns the all versions newer than the specified current version, but within the specified update scope.org.apache.maven.artifact.versioning.ArtifactVersion[]VersionDetails.getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, Optional<Segment> updateScope, boolean includeSnapshots) Returns the all versions newer than the specified current version, but within the specified update scope.AbstractVersionDetails.getLowerBound(org.apache.maven.artifact.versioning.ArtifactVersion version, Optional<Segment> unchangedSegment) Returns the string designation of the lower bound version based on the given artifact version and the lowest unchanged segment index (0-based); -1 means that the whole version string can be changed, implying that there is also no string designation of the lower bound version.final org.apache.maven.artifact.versioning.ArtifactVersion[]AbstractVersionDetails.getNewerVersions(String version, Optional<Segment> upperBoundSegment, boolean includeSnapshots) Deprecated.final org.apache.maven.artifact.versioning.ArtifactVersion[]AbstractVersionDetails.getNewerVersions(String versionString, Optional<Segment> unchangedSegment, boolean includeSnapshots, boolean allowDowngrade) org.apache.maven.artifact.versioning.ArtifactVersion[]VersionDetails.getNewerVersions(String version, Optional<Segment> upperBoundSegment, boolean includeSnapshots) Deprecated.org.apache.maven.artifact.versioning.ArtifactVersion[]VersionDetails.getNewerVersions(String versionString, Optional<Segment> upperBoundSegment, boolean includeSnapshots, boolean allowDowngrade) Returns an array of newer versions than the given version, given the upper bound segment and whether snapshots should be included.final org.apache.maven.artifact.versioning.ArtifactVersionAbstractVersionDetails.getNewestUpdate(Optional<Segment> updateScope, boolean includeSnapshots) final org.apache.maven.artifact.versioning.ArtifactVersionAbstractVersionDetails.getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, Optional<Segment> updateScope, boolean includeSnapshots) org.apache.maven.artifact.versioning.ArtifactVersionVersionDetails.getNewestUpdate(Optional<Segment> updateScope, boolean includeSnapshots) Returns the newest version newer than the specified current version, but within the specified update scope ornullif no such version exists.org.apache.maven.artifact.versioning.ArtifactVersionVersionDetails.getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion, Optional<Segment> updateScope, boolean includeSnapshots) Returns the newest version newer than the specified current version, but within the specified update scope ornullif no such version exists.Optional<org.apache.maven.artifact.versioning.ArtifactVersion>AbstractVersionDetails.getNewestVersion(String versionString, Optional<Segment> upperBoundSegment, boolean includeSnapshots, boolean allowDowngrade) org.apache.maven.artifact.versioning.ArtifactVersionPropertyVersions.getNewestVersion(String versionString, Property property, boolean allowSnapshots, Collection<org.apache.maven.project.MavenProject> reactorProjects, VersionsHelper helper, boolean allowDowngrade, Optional<Segment> upperBoundSegment) Retrieves the newest artifact version for the given property-denoted artifact ornullif no newer version could be found.Optional<org.apache.maven.artifact.versioning.ArtifactVersion>VersionDetails.getNewestVersion(String versionString, Optional<Segment> upperBoundSegment, boolean includeSnapshots, boolean allowDowngrade) Returns the latest version, newer than the given version, given the upper bound segment and whether snapshots should be included.final org.apache.maven.artifact.versioning.ArtifactVersionAbstractVersionDetails.getReportNewestUpdate(Optional<Segment> updateScope, boolean includeSnapshots) Returns the latest version newer than the specified current version, and within the specified update scope, ornullif no such version exists.final org.apache.maven.artifact.versioning.ArtifactVersion[]AbstractVersionDetails.getReportUpdates(Optional<Segment> updateScope, boolean includeSnapshots) Returns all versions newer than the specified current version, and within the specified update scope.org.apache.maven.artifact.versioning.RestrictionAbstractVersionDetails.restrictionFor(Optional<Segment> scope) org.apache.maven.artifact.versioning.RestrictionVersionDetails.restrictionFor(Optional<Segment> scope) Returns a Restriction object for computing version upgrades with the given segment allowing updates, with all more major segments locked in place.org.apache.maven.artifact.versioning.RestrictionAbstractVersionDetails.restrictionForIgnoreScope(Optional<Segment> ignored) org.apache.maven.artifact.versioning.RestrictionVersionDetails.restrictionForIgnoreScope(Optional<Segment> ignored) Returns theRestrictionobjects for a segemnt scope which is to be ignored.Constructor parameters in org.codehaus.mojo.versions.api with type arguments of type SegmentModifierConstructorDescriptionArtifactVersionsCache(org.apache.commons.lang3.function.TriFunction<AbstractVersionDetails, Optional<Segment>, Boolean, ?> cachedFunction) Constructs a new instance given the concrete function for obtaining the details -
Uses of Segment in org.codehaus.mojo.versions.ordering
Methods in org.codehaus.mojo.versions.ordering that return SegmentModifier and TypeMethodDescriptionBoundArtifactVersion.getSegment()Returns the most major segment that can change.InvalidSegmentException.getSegment()Methods in org.codehaus.mojo.versions.ordering with parameters of type SegmentModifier and TypeMethodDescriptionprotected org.apache.maven.artifact.versioning.ArtifactVersionMavenVersionComparator.innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v, Segment segment) protected org.apache.maven.artifact.versioning.ArtifactVersionMercuryVersionComparator.innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v, Segment segment) Deprecated.protected org.apache.maven.artifact.versioning.ArtifactVersionNumericVersionComparator.innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v, Segment segment) Deprecated.Constructors in org.codehaus.mojo.versions.ordering with parameters of type SegmentModifierConstructorDescriptionBoundArtifactVersion(String artifactVersion, Segment segment) Constructs the instance given the version in a text format.BoundArtifactVersion(org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion, Segment segment) Constructs the instance given ainstanceInvalidSegmentException(Segment segment, int segmentCount, org.apache.maven.artifact.versioning.ArtifactVersion version) Constructs the exception object -
Uses of Segment in org.codehaus.mojo.versions.utils
Methods in org.codehaus.mojo.versions.utils that return types with arguments of type SegmentModifier and TypeMethodDescriptionSegmentUtils.determineUnchangedSegment(boolean allowMajorUpdates, boolean allowMinorUpdates, boolean allowIncrementalUpdates, org.apache.maven.plugin.logging.Log log) Based on the passed flags, determines which segment which is not to be changed.
AbstractVersionDetails.getNewerVersions(String, Optional, boolean, boolean), boolean, boolean)} instead