public class LetoCorrectnessChecks
extends java.lang.Object
Constructor and Description |
---|
LetoCorrectnessChecks() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<LetoPeriodType,java.lang.Long> |
calcuateLengthInPeriodTypes(LetoPeriodStructure periodStructure) |
static java.lang.String |
checkCorrectness(LetoPeriodType type)
Check the correctness of the definition of a given type and return a human redable representation of the errors
that have happened during this check.
|
static java.lang.String |
checkCorrectness(LetoPeriodType[] types,
Leto leto)
Check internal correctness of the calendar definitions.
|
public static java.util.Map<LetoPeriodType,java.lang.Long> calcuateLengthInPeriodTypes(LetoPeriodStructure periodStructure)
public static java.lang.String checkCorrectness(LetoPeriodType type)
type
- The period type definition to be checked for correctness.public static java.lang.String checkCorrectness(LetoPeriodType[] types, Leto leto)
types
- The period types of the given calendar.leto
- Check correctness of the calculation of a particular calendar.