Enum Class SetOperationCornerCases.CornerCase
java.lang.Object
java.lang.Enum<SetOperationCornerCases.CornerCase>
org.apache.datasketches.thetacommon.SetOperationCornerCases.CornerCase
- All Implemented Interfaces:
Serializable
,Comparable<SetOperationCornerCases.CornerCase>
,Constable
- Enclosing class:
- SetOperationCornerCases
public static enum SetOperationCornerCases.CornerCase
extends Enum<SetOperationCornerCases.CornerCase>
List of corner cases
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDegen_DegenDegen_EmptyDegen_EstimationDegen_ExactEmpty DegenEmpty EmptyEmpty EstimationEmpty ExactEstimation_DegenEstimation_EmptyEstimation_EstimationEstimation_ExactExact DegenExact EmptyExact EstimationExact Exact -
Method Summary
Modifier and TypeMethodDescriptioncaseIdToCornerCase
(int id) Converts caseId to CornerCaseIdGets the AnotB actionGets the case descriptionint
getId()
Gets the case IDGets the intersect actionGets the union actionReturns the enum constant of this class with the specified name.static SetOperationCornerCases.CornerCase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Empty_Empty
Empty Empty -
Empty_Exact
Empty Exact -
Empty_Estimation
Empty Estimation -
Empty_Degen
Empty Degen -
Exact_Empty
Exact Empty -
Exact_Exact
Exact Exact -
Exact_Estimation
Exact Estimation -
Exact_Degen
Exact Degen -
Estimation_Empty
Estimation_Empty -
Estimation_Exact
Estimation_Exact -
Estimation_Estimation
Estimation_Estimation -
Estimation_Degen
Estimation_Degen -
Degen_Empty
Degen_Empty -
Degen_Exact
Degen_Exact -
Degen_Estimation
Degen_Estimation -
Degen_Degen
Degen_Degen
-
-
Method Details
-
values
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
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
-
getId
public int getId()Gets the case ID- Returns:
- the caseId
-
getCaseDescription
Gets the case description- Returns:
- the caseDescription
-
getIntersectAction
Gets the intersect action- Returns:
- the intersectAction
-
getAnotbAction
Gets the AnotB action- Returns:
- the anotbAction
-
getUnionAction
Gets the union action- Returns:
- the unionAction
-
caseIdToCornerCase
Converts caseId to CornerCaseId- Parameters:
id
- the case ID- Returns:
- the Corner Case ID
-