- java.lang.Object
-
- eu.ess.xaos.ui.plot.util.Assertions
-
public class Assertions extends Object
Set of assertion methods useful for checking method arguments.- Author:
- claudio.rosati@esss.se
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertValueAxis(Axis<?> axis, String axisName)
Asserts that given axis is an instance ofValueAxis
.
-
-
-
Method Detail
-
assertValueAxis
public static void assertValueAxis(Axis<?> axis, String axisName) throws IllegalArgumentException
Asserts that given axis is an instance ofValueAxis
.- Parameters:
axis
- The axis to be checked.axisName
- Name of the axis to be checked (used for the thrown exception's message).- Throws:
IllegalArgumentException
- If the giveaxis
is not an instance ofValueAxis
.
-
-