java.lang.Object
org.spongepowered.plugin.meta.version.Restriction

public class Restriction extends Object
Describes a restriction in versioning.
  • Field Details

    • EVERYTHING

      public static final Restriction EVERYTHING
  • Constructor Details

    • Restriction

      public Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
  • Method Details

    • getLowerBound

      public ArtifactVersion getLowerBound()
    • isLowerBoundInclusive

      public boolean isLowerBoundInclusive()
    • getUpperBound

      public ArtifactVersion getUpperBound()
    • isUpperBoundInclusive

      public boolean isUpperBoundInclusive()
    • containsVersion

      public boolean containsVersion(ArtifactVersion version)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object