public final class Effect extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Effect.EffectRange |
Constructor and Description |
---|
Effect(Class<? extends Annotation> cls)
Create a new Effect object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Effect e)
Return true if this equals the given effect.
|
boolean |
equals(@Nullable Object o) |
Class<? extends Annotation> |
getAnnot() |
int |
hashCode() |
boolean |
isPoly()
Return true if this is PolyUIEffect.
|
boolean |
isSafe()
Return true if this is SafeEffect.
|
boolean |
isUI()
Return true if this is UIEffect.
|
static boolean |
lessThanOrEqualTo(Effect left,
Effect right)
Return true iff
left is less than or equal to right . |
static Effect |
min(Effect l,
Effect r) |
String |
toString() |
public Effect(Class<? extends Annotation> cls)
cls
- one of UIEffect.class, PolyUIEffect.class, or SafeEffect.classpublic static boolean lessThanOrEqualTo(Effect left, Effect right)
left
is less than or equal to right
.left
- the first effect to compareright
- the first effect to compareleft
is less than or equal to right
public boolean isSafe()
public boolean isUI()
public boolean isPoly()
public Class<? extends Annotation> getAnnot()
@SideEffectFree public String toString()
public boolean equals(Effect e)
e
- the effect to compare this to