SemverRange
Package: com.hypixel.hytale.common.semver
public class SemverRange implements SemverSatisfiesImplements SemverSatisfies to provide SemverRange functionality.
Constants
Section titled “Constants”| Modifier | Type | Name | Value |
|---|---|---|---|
public static final | Codec<SemverRange> | CODEC | new FunctionCodec<>(Codec.STRING, SemverRange::fromString, SemverRange::toString) |
public static final | SemverRange | WILDCARD | new SemverRange(new SemverSatisfies[0], true) |
Fields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
private final | SemverSatisfies[] | comparators |
private final | boolean | and |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | SemverRange(SemverSatisfies[] comparators, boolean and) | |
@Override public | boolean | satisfies(Semver semver) |
@Override public | String | toString() |
@Nonnull public static | SemverRange | fromString(String str) |
@Nonnull public static | SemverRange | fromString(String str, boolean strict) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.