public class DefaultNutsVersion extends DefaultNutsTokenFilter implements net.thevpc.nuts.NutsVersion
expression| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(net.thevpc.nuts.NutsVersion other) |
int |
compareTo(String other) |
static int |
compareVersions(String v1,
String v2) |
boolean |
equals(Object o) |
net.thevpc.nuts.NutsVersionFilter |
filter() |
net.thevpc.nuts.NutsFormat |
formatter() |
String |
get(int level) |
BigInteger |
getNumber(int level) |
BigInteger |
getNumber(int level,
BigInteger defaultValue) |
BigInteger |
getNumber(int index,
long 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() |
static boolean |
isBlankVersion(String pattern) |
boolean |
isSingleValue() |
static boolean |
isStaticVersionPattern(String pattern) |
boolean |
matches(String expression) |
int |
numberSize() |
int |
size() |
String |
toString() |
static net.thevpc.nuts.NutsVersion |
valueOf(String value,
net.thevpc.nuts.NutsSession session) |
static boolean |
versionMatches(String version,
String pattern) |
contains, isBlank, isNull, likepublic static net.thevpc.nuts.NutsVersion valueOf(String value, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsFormat formatter()
formatter in interface net.thevpc.nuts.NutsFormattablepublic 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.NutsVersionInterval[] intervals()
intervals in interface net.thevpc.nuts.NutsVersionpublic boolean isSingleValue()
isSingleValue 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 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 index, long defaultValue)
getNumber in interface net.thevpc.nuts.NutsVersionpublic BigInteger getNumber(int level, BigInteger defaultValue)
getNumber 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 boolean matches(String expression)
matches in interface net.thevpc.nuts.NutsTokenFiltermatches in class DefaultNutsTokenFilterpublic static String incVersion(String oldVersion, int level, BigInteger count)
public static boolean isBlankVersion(String pattern)
public static boolean isStaticVersionPattern(String pattern)
Copyright © 2021 vpc open source initiative. All rights reserved.