Package com.microstrategy.utils
Class EnumTriStateIndicator
- java.lang.Object
-
- com.microstrategy.utils.EnumTriStateIndicator
-
public class EnumTriStateIndicator extends java.lang.ObjectInternal housekeeping. Maintains whether a given state is true, false or may be.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description static EnumTriStateIndicatorMAYBEstatic EnumTriStateIndicatorNOstatic EnumTriStateIndicatorYES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumTriStateIndicatormapFromBoolean(boolean state)static EnumTriStateIndicatormapFromInt(int enumValue)returns an enumeration object based on the enumeration value.booleanmapToBoolean()java.lang.BooleanmapToBooleanObject()intmapToInt()Returns an integer value for the enumeration
-
-
-
Field Detail
-
YES
public static final EnumTriStateIndicator YES
-
NO
public static final EnumTriStateIndicator NO
-
MAYBE
public static final EnumTriStateIndicator MAYBE
-
-
Method Detail
-
mapToBoolean
public boolean mapToBoolean()
- Returns:
- whether the tri-state value is 0
-
mapToBooleanObject
public java.lang.Boolean mapToBooleanObject()
- Returns:
- whether the tri-state value is 0
- Since:
- MicroStrategy Web 8.0.0
-
mapFromBoolean
public static EnumTriStateIndicator mapFromBoolean(boolean state)
-
mapToInt
public int mapToInt()
Returns an integer value for the enumeration- Returns:
- an integer value for the enumeration
- Since:
- MicroStrategy Web 8.0.0
-
mapFromInt
public static EnumTriStateIndicator mapFromInt(int enumValue)
returns an enumeration object based on the enumeration value.- Parameters:
enumValue- The enumeration value that will be mapped to an enumeration object.- Returns:
- An enumeration object based on the enumeration value.
- Since:
- MicroStrategy Web 8.0.0
-
-