Class Effect
- java.lang.Object
 - 
- org.checkerframework.checker.guieffect.Effect
 
 
- 
public final class Effect extends java.lang.ObjectAn effect -- either UIEffect, PolyUIEffect, or SafeEffect. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEffect.EffectRange 
- 
Constructor Summary
Constructors Constructor Description Effect(java.lang.Class<? extends java.lang.annotation.Annotation> cls)Create a new Effect object. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object o)booleanequals(Effect e)Return true if this equals the given effect.java.lang.Class<? extends java.lang.annotation.Annotation>getAnnot()inthashCode()booleanisPoly()Return true if this is PolyUIEffect.booleanisSafe()Return true if this is SafeEffect.booleanisUI()Return true if this is UIEffect.static booleanlessThanOrEqualTo(Effect left, Effect right)Return true iffleftis less than or equal toright.static Effectmin(Effect l, Effect r)java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
lessThanOrEqualTo
public static boolean lessThanOrEqualTo(Effect left, Effect right)
Return true iffleftis less than or equal toright.- Parameters:
 left- the first effect to compareright- the first effect to compare- Returns:
 - true iff 
leftis less than or equal toright 
 
- 
isSafe
public boolean isSafe()
Return true if this is SafeEffect.- Returns:
 - true if this is SafeEffect
 
 
- 
isUI
public boolean isUI()
Return true if this is UIEffect.- Returns:
 - true if this is UIEffect
 
 
- 
isPoly
@Pure public boolean isPoly()
Return true if this is PolyUIEffect.- Returns:
 - true if this is PolyUIEffect
 
 
- 
getAnnot
public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnot()
 
- 
toString
@SideEffectFree public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(Effect e)
Return true if this equals the given effect.- Parameters:
 e- the effect to compare this to- Returns:
 - true if this equals the given effect
 
 
- 
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
@Pure public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -