Package org.bitcoin
Class NativeSecp256k1Util
- java.lang.Object
-
- org.bitcoin.NativeSecp256k1Util
-
public class NativeSecp256k1Util extends java.lang.Object
Assertion utilities forNativeSecp256k1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NativeSecp256k1Util.AssertFailException
Assertion failure exception
-
Constructor Summary
Constructors Constructor Description NativeSecp256k1Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertEquals(boolean val, boolean val2, java.lang.String message)
Compare two booleans and throwNativeSecp256k1Util.AssertFailException
if not equalstatic void
assertEquals(int val, int val2, java.lang.String message)
Compare two integers and throwNativeSecp256k1Util.AssertFailException
if not equalstatic void
assertEquals(java.lang.String val, java.lang.String val2, java.lang.String message)
Compare two Strings and throwNativeSecp256k1Util.AssertFailException
if not equal
-
-
-
Method Detail
-
assertEquals
public static void assertEquals(int val, int val2, java.lang.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, java.lang.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(java.lang.String val, java.lang.String val2, java.lang.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
-
-