jp.bitmeister.asn1.type
Interface ValueComparable

All Known Implementing Classes:
ENUMERATED, INTEGER, REAL

public interface ValueComparable

The interface for classes whose instance can be compared to other instance.

INTEGER and REAL implements this interface and their value shall be ordered by the natural ordering. compareTo method is used for compare the value to the other value.

Author:
WATANABE, Jun.
See Also:
INTEGER, REAL

Method Summary
 int compareTo(ASN1Type other)
          Compares the value of this instance to the value of the other instance.
 

Method Detail

compareTo

int compareTo(ASN1Type other)
Compares the value of this instance to the value of the other instance.

Parameters:
other - The instance whose value to be compared.
Returns:
A negative integer, zero, or a positive integer as this value is less than, equal to, or greater than the other value.


Copyright © 2012 BitMeister Inc. All Rights Reserved.