public class PartialThriftComparer<T extends TBase>
extends java.lang.Object
| Constructor and Description |
|---|
PartialThriftComparer(ThriftMetadata.ThriftStruct metadata)
Constructs an instance of
PartialThriftComparer. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(T t1,
T t2,
java.lang.StringBuilder sb)
Compares thrift objects
t1 and t2 and
returns true if they are equal false otherwise. |
public PartialThriftComparer(ThriftMetadata.ThriftStruct metadata)
PartialThriftComparer.metadata - defines the scope of comparison.public boolean areEqual(T t1, T t2, java.lang.StringBuilder sb)
t1 and t2 and
returns true if they are equal false otherwise. The comparison is limited
to the scope defined by metadata.
If the objects are not equal then it optionally records their differences
if sb is supplied.
t1 - the first object.t2 - the second object.sb - if non-null, results of the comparison are returned in it.