jp.bitmeister.asn1.type
Interface ValueComparable<T extends ASN1Type>

All Known Implementing Classes:
AbstractInteger, BigENUMERATED, BigINTEGER, ENUMERATED, INTEGER, REAL

public interface ValueComparable<T extends ASN1Type>

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

INTEGER, BigINTEGER 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, BigINTEGER, REAL

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

Method Detail

compareTo

int compareTo(T 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.