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
-
-
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)
String
getFailingChecks()
IntegrityState
group(String group)
boolean
isFailure()
-
-
-
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)
-
isFailure
public boolean isFailure()
-
getFailingChecks
public String getFailingChecks()
-
-