Package org.bitcoin
Class NativeSecp256k1Util
java.lang.Object
org.bitcoin.NativeSecp256k1Util
Assertion utilities for
NativeSecp256k1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Assertion failure exception -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertEquals
(boolean val, boolean val2, String message) Compare two booleans and throwNativeSecp256k1Util.AssertFailException
if not equalstatic void
assertEquals
(int val, int val2, String message) Compare two integers and throwNativeSecp256k1Util.AssertFailException
if not equalstatic void
assertEquals
(String val, String val2, String message) Compare two Strings and throwNativeSecp256k1Util.AssertFailException
if not equal
-
Constructor Details
-
NativeSecp256k1Util
public NativeSecp256k1Util()
-
-
Method Details
-
assertEquals
public static void assertEquals(int val, int val2, String message) throws NativeSecp256k1Util.AssertFailException Compare two integers and throwNativeSecp256k1Util.AssertFailException
if not equal- Parameters:
val
- first intval2
- second intmessage
- failure error message- Throws:
NativeSecp256k1Util.AssertFailException
- when ints are not equal
-
assertEquals
public static void assertEquals(boolean val, boolean val2, String message) throws NativeSecp256k1Util.AssertFailException Compare two booleans and throwNativeSecp256k1Util.AssertFailException
if not equal- Parameters:
val
- first booleanval2
- second booleanmessage
- failure error message- Throws:
NativeSecp256k1Util.AssertFailException
- when booleans are not equal
-
assertEquals
public static void assertEquals(String val, String val2, String message) throws NativeSecp256k1Util.AssertFailException Compare two Strings and throwNativeSecp256k1Util.AssertFailException
if not equal- Parameters:
val
- first Stringval2
- second Stringmessage
- failure error message- Throws:
NativeSecp256k1Util.AssertFailException
- when Strings are not equal
-