The -compare command line option causes an equals method to be added to each generated class. The signature of this method is as follows:
public boolean equals (ClassName rhs);
where ClassName is the name of the generated class to which the member function belongs. The method returns a boolean result of true if the object instances are equal and false if not.
Note that for classes extended from the Asn1Choice
class,
no equals member function is generated. This is because the Asn1Choice class already has an equals member function, which is inherited by
classes extending the Asn1Choice
class.