Package ch.njol.skript.classes
Enum Class Comparator.Relation
- All Implemented Interfaces:
Serializable
,Comparable<Comparator.Relation>
,Constable
- Enclosing interface:
Comparator<T1,
T2>
Deprecated.
represents a relation between two objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator.Relation
get
(boolean b) Deprecated.Returns EQUAL for true or NOT_EQUAL for falsestatic Comparator.Relation
get
(double d) Deprecated.Gets a Relation from a difference: If d is 0, EQUAL is returned, if d is greater than 0, GREATER is returned, otherwise SMALLER.static Comparator.Relation
get
(int i) Deprecated.Gets a Relation from a difference: If i is 0, EQUAL is returned, if i is greater than 0, GREATER is returned, otherwise SMALLER.Deprecated.Gets the inverse of this relation, i.e if this relation fulfilsX rel Y
, then the returned relation fulfils!(X rel Y)
.int
Deprecated.Deprecated.Gets the relation which has switched arguments, i.e.boolean
is
(Comparator.Relation other) Deprecated.Test whether this relation is fulfilled if another is, i.e.boolean
Deprecated.toString()
Deprecated.Returns this relation's string representation, which is similar to "equal to" or "greater than".static Comparator.Relation
Deprecated.Returns the enum constant of this class with the specified name.static Comparator.Relation[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUAL
Deprecated. -
NOT_EQUAL
Deprecated. -
GREATER
Deprecated. -
GREATER_OR_EQUAL
Deprecated. -
SMALLER
Deprecated. -
SMALLER_OR_EQUAL
Deprecated.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
get
Deprecated.Returns EQUAL for true or NOT_EQUAL for false- Parameters:
b
-- Returns:
- b ? Relation.EQUAL : Relation.NOT_EQUAL
-
get
Deprecated.Gets a Relation from a difference: If i is 0, EQUAL is returned, if i is greater than 0, GREATER is returned, otherwise SMALLER.- Parameters:
i
-- Returns:
- i == 0 ? Relation.EQUAL : i > 0 ? Relation.GREATER : Relation.SMALLER
-
get
Deprecated.Gets a Relation from a difference: If d is 0, EQUAL is returned, if d is greater than 0, GREATER is returned, otherwise SMALLER.- Parameters:
d
-- Returns:
- d == 0 ? Relation.EQUAL : d > 0 ? Relation.GREATER : Relation.SMALLER
-
is
Deprecated.Test whether this relation is fulfilled if another is, i.e. if the parameter relation fulfilsX rel Y
, then this relation fulfilsX rel Y
as well.- Parameters:
other
-- Returns:
- Whether this relation is part of the given relation, e.g.
GREATER_OR_EQUAL.is(EQUAL)
returns true.
-
toString
Deprecated.Returns this relation's string representation, which is similar to "equal to" or "greater than".- Overrides:
toString
in classEnum<Comparator.Relation>
-
getInverse
Deprecated.Gets the inverse of this relation, i.e if this relation fulfilsX rel Y
, then the returned relation fulfils!(X rel Y)
.- Returns:
- !this
-
getSwitched
Deprecated.Gets the relation which has switched arguments, i.e. if this relation fulfilsX rel Y
, then the returned relation fulfilsY rel X
.- Returns:
- siht
-
isEqualOrInverse
public boolean isEqualOrInverse()Deprecated. -
getRelation
public int getRelation()Deprecated.
-