public class DefaultNVersionFilter extends net.thevpc.nuts.spi.base.AbstractVersionFilter implements NExprIdFilter, Serializable
| Constructor and Description |
|---|
DefaultNVersionFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptVersion(net.thevpc.nuts.NVersion version) |
void |
add(net.thevpc.nuts.NVersionInterval interval) |
boolean |
equals(Object obj) |
int |
hashCode() |
net.thevpc.nuts.util.NOptional<List<net.thevpc.nuts.NVersionInterval>> |
intervals() |
static net.thevpc.nuts.util.NOptional<net.thevpc.nuts.NVersionFilter> |
parse(String version) |
net.thevpc.nuts.NVersionFilter |
simplify() |
String |
toExpr()
if convertible to javascript boolean expression return valid non null
code.
|
String |
toString() |
and, neg, or, redescribeand, describe, getFilterOp, getFilterType, getSubFilters, or, simplify, topublic static net.thevpc.nuts.util.NOptional<net.thevpc.nuts.NVersionFilter> parse(String version)
public boolean acceptVersion(net.thevpc.nuts.NVersion version)
acceptVersion in interface net.thevpc.nuts.NVersionFilterpublic net.thevpc.nuts.util.NOptional<List<net.thevpc.nuts.NVersionInterval>> intervals()
intervals in interface net.thevpc.nuts.NVersionFilterintervals in class net.thevpc.nuts.spi.base.AbstractVersionFilterpublic void add(net.thevpc.nuts.NVersionInterval interval)
public String toExpr()
NExprIdFiltertoExpr in interface NExprIdFilterpublic net.thevpc.nuts.NVersionFilter simplify()
simplify in interface net.thevpc.nuts.util.NFiltersimplify in interface net.thevpc.nuts.util.NSimplifiable<net.thevpc.nuts.NVersionFilter>Copyright © 2025 vpc open source initiative. All rights reserved.