public class DefaultNutsVersion extends Object implements net.thevpc.nuts.NutsVersion
| Modifier and Type | Field and Description |
|---|---|
protected String |
expression |
| Constructor and Description |
|---|
DefaultNutsVersion(String expression,
net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(net.thevpc.nuts.NutsVersion other) |
int |
compareTo(String other) |
static int |
compareVersions(String v1,
String v2) |
net.thevpc.nuts.NutsVersion |
compatNewer() |
net.thevpc.nuts.NutsVersion |
compatOlder() |
boolean |
equals(Object o) |
net.thevpc.nuts.NutsVersionFilter |
filter() |
net.thevpc.nuts.NutsFormat |
formatter() |
String |
get(int level) |
int |
getInt(int index,
int defaultValue) |
static Integer |
getKnownQualifierIndex(String v1) |
long |
getLong(int index,
long defaultValue) |
BigInteger |
getNumber(int level) |
BigInteger |
getNumber(int level,
BigInteger defaultValue) |
String |
getValue() |
int |
hashCode() |
net.thevpc.nuts.NutsVersion |
inc() |
net.thevpc.nuts.NutsVersion |
inc(int position) |
net.thevpc.nuts.NutsVersion |
inc(int position,
BigInteger amount) |
net.thevpc.nuts.NutsVersion |
inc(int position,
long amount) |
static String |
incVersion(String oldVersion,
int level,
BigInteger count) |
static String |
incVersion(String oldVersion,
int level,
long count) |
net.thevpc.nuts.NutsVersionInterval[] |
intervals() |
boolean |
isBlank() |
static boolean |
isBlankVersion(String pattern) |
boolean |
isFilter() |
boolean |
isNull() |
boolean |
isSingleValue() |
static boolean |
isStaticVersionPattern(String pattern) |
int |
numberSize() |
int |
size() |
String |
toString() |
static boolean |
versionMatches(String version,
String pattern) |
protected String expression
public DefaultNutsVersion(String expression, net.thevpc.nuts.NutsSession session)
public static String incVersion(String oldVersion, int level, BigInteger count)
public static boolean isBlankVersion(String pattern)
public static boolean isStaticVersionPattern(String pattern)
public boolean isNull()
isNull in interface net.thevpc.nuts.NutsVersionpublic boolean isBlank()
isBlank in interface net.thevpc.nuts.NutsBlankableisBlank in interface net.thevpc.nuts.NutsVersionpublic String getValue()
getValue in interface net.thevpc.nuts.NutsVersionpublic int compareTo(String other)
compareTo in interface net.thevpc.nuts.NutsVersionpublic int compareTo(net.thevpc.nuts.NutsVersion other)
compareTo in interface Comparable<net.thevpc.nuts.NutsVersion>compareTo in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersionFilter filter()
filter in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersion compatNewer()
compatNewer in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersion compatOlder()
compatOlder in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersionInterval[] intervals()
intervals in interface net.thevpc.nuts.NutsVersionpublic boolean isSingleValue()
isSingleValue in interface net.thevpc.nuts.NutsVersionpublic boolean isFilter()
isFilter in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersion inc()
inc in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersion inc(int position)
inc in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersion inc(int position,
long amount)
inc in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsVersion inc(int position,
BigInteger amount)
inc in interface net.thevpc.nuts.NutsVersionpublic int size()
size in interface net.thevpc.nuts.NutsVersionpublic int numberSize()
numberSize in interface net.thevpc.nuts.NutsVersionpublic String get(int level)
get in interface net.thevpc.nuts.NutsVersionpublic BigInteger getNumber(int level)
getNumber in interface net.thevpc.nuts.NutsVersionpublic BigInteger getNumber(int level, BigInteger defaultValue)
getNumber in interface net.thevpc.nuts.NutsVersionpublic int getInt(int index,
int defaultValue)
getInt in interface net.thevpc.nuts.NutsVersionpublic long getLong(int index,
long defaultValue)
getLong in interface net.thevpc.nuts.NutsVersionpublic net.thevpc.nuts.NutsFormat formatter()
formatter in interface net.thevpc.nuts.NutsFormattableCopyright © 2022 vpc open source initiative. All rights reserved.