Package org.cache2k.core
Class IntegrityState
- java.lang.Object
-
- org.cache2k.core.IntegrityState
-
public class IntegrityState extends Object
Used to record and check the integrity. We support to record 64 different constraints to produce a single long state value.- Author:
- Jens Wilke; created: 2013-07-11
-
-
Constructor Summary
Constructors Constructor Description IntegrityState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegrityState
check(String check, boolean f)
protected IntegrityState
check(String check, String note, boolean f)
IntegrityState
checkEquals(String check, int v1, int v2)
IntegrityState
checkEquals(String check, long v1, long v2)
IntegrityState
checkGreater(String check, int v1, int v2)
IntegrityState
checkGreaterOrEquals(String check, int v1, int v2)
IntegrityState
checkLess(String check, int v1, int v2)
IntegrityState
checkLessOrEquals(String check, int v1, int v2)
String
getFailingChecks()
String
getStateDescriptor()
long
getStateFlags()
IntegrityState
group(String group)
void
throwIfNeeded()
-
-
-
Method Detail
-
check
protected IntegrityState check(String check, String note, boolean f)
- Parameters:
check
- Name of the test. Used when we build an exception.f
- test outcome, true when success
-
group
public IntegrityState group(String group)
-
check
public IntegrityState check(String check, boolean f)
-
checkEquals
public IntegrityState checkEquals(String check, int v1, int v2)
-
checkEquals
public IntegrityState checkEquals(String check, long v1, long v2)
-
checkLessOrEquals
public IntegrityState checkLessOrEquals(String check, int v1, int v2)
-
checkLess
public IntegrityState checkLess(String check, int v1, int v2)
-
checkGreaterOrEquals
public IntegrityState checkGreaterOrEquals(String check, int v1, int v2)
-
checkGreater
public IntegrityState checkGreater(String check, int v1, int v2)
-
getStateDescriptor
public String getStateDescriptor()
-
getStateFlags
public long getStateFlags()
-
getFailingChecks
public String getFailingChecks()
-
throwIfNeeded
public void throwIfNeeded()
-
-