|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.util.Utils
public final class Utils
Utilities for this package.
Method Summary | |
---|---|
static org.apache.maven.artifact.versioning.ArtifactVersion |
findVersionRepresentative(org.apache.maven.artifact.versioning.VersionRange range) Returns a representative from within the version range. |
static String |
normalizeKey(String key) Normalizes the key to an issue information to be a valid key element to select a value in a resource bundle. |
static List<String> |
splitToList(String commaSeparatedValues) Splits a comma separated list of values from a String into a list of String s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String normalizeKey(String key)
key
- the key to normalize.
public static List<String> splitToList(String commaSeparatedValues)
String
into a list of
String
s.
commaSeparatedValues
- the
String
value containing comma separated values. Blanks in front or after the items are trimmed.
String
s or the empty list if the given value was blank.
public static org.apache.maven.artifact.versioning.ArtifactVersion findVersionRepresentative(org.apache.maven.artifact.versioning.VersionRange range) throws NullPointerException, IllegalArgumentException
It is expected that the restrictions are ordered by the version numbers they define ascending.
range
- the range of version where the lowest version is requested.
0.0.0
if the range has no lower bound.
NullPointerException
- if the given
range
is
null
.
IllegalArgumentException
- if no bound is inclusive and the upper bound is
null
and the lower bound is not
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |