public final class Equivalence extends Object
IonValues, following
the contract of IonValue.equals(Object).
Basic usage of this class is as follows:
IonValue v1 = ...;
IonValue v2 = ...;
software.amazon.ion.util.Equivalence.ionEquals( v1, v2 );
More likely, a static import would make using this class easier.
import static software.amazon.ion.util.Equivalence.ionEquals;
...
boolean equivalent = ionEquals( v1, v2 );
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ionEquals(IonValue v1,
IonValue v2)
Checks for strict data equivalence over two Ion Values.
|
static boolean |
ionEqualsByContent(IonValue v1,
IonValue v2)
Checks for structural data equivalence over two Ion Values.
|
public static boolean ionEquals(IonValue v1, IonValue v2)
v1 - The first Ion value to compare.v2 - The second Ion value to compare.public static boolean ionEqualsByContent(IonValue v1, IonValue v2)
v1 - The first Ion value to compare.v2 - The second Ion value to compare.