Quilt Loader 1
Loading...
Searching...
No Matches
org.quiltmc.loader.api.VersionConstraint Interface Reference
Inheritance diagram for org.quiltmc.loader.api.VersionConstraint:
org.quiltmc.loader.impl.metadata.qmj.VersionConstraintImpl

Classes

enum  Type
 Represents a type of version constraint. More...

Public Member Functions

String version ()
Type type ()
String toString ()
boolean matches (Version version)
 Checks if this version constraint matches the given version.
boolean equals (Object o)
 Checks if this version constraint matches another version constraint.

Static Public Member Functions

static VersionConstraint any ()

Detailed Description

Deprecated
Since VersionInterval and VersionRange expose the same information but in a more useful way.

Member Function Documentation

◆ equals()

boolean org.quiltmc.loader.api.VersionConstraint.equals ( Object o)

Checks if this version constraint matches another version constraint.

Parameters
othe other version constraint
Returns
true if the version constraints match, false if the constraints do not match or the object is not a version constraint

Implemented in org.quiltmc.loader.impl.metadata.qmj.VersionConstraintImpl.

◆ matches()

boolean org.quiltmc.loader.api.VersionConstraint.matches ( Version version)

Checks if this version constraint matches the given version.

Implemented in org.quiltmc.loader.impl.metadata.qmj.VersionConstraintImpl.

◆ toString()

String org.quiltmc.loader.api.VersionConstraint.toString ( )
Returns
a string representation of this version constraint

Implemented in org.quiltmc.loader.impl.metadata.qmj.VersionConstraintImpl.

◆ type()

Type org.quiltmc.loader.api.VersionConstraint.type ( )
Returns
the type of version constraint.

Implemented in org.quiltmc.loader.impl.metadata.qmj.VersionConstraintImpl.

◆ version()

String org.quiltmc.loader.api.VersionConstraint.version ( )
Returns
the version of this version constraint. Always an empty string if type() is Type#ANY

Implemented in org.quiltmc.loader.impl.metadata.qmj.VersionConstraintImpl.


The documentation for this interface was generated from the following file:
  • src/main/java/org/quiltmc/loader/api/VersionConstraint.java