ch.panter.li.bi.asn.api
Interface IntegralValueInfo

All Superinterfaces:
NumericalValueInfo
All Known Subinterfaces:
IntegralValue
All Known Implementing Classes:
AsnEnumerated, AsnInteger, AsnIntegralNumberValueBase

public interface IntegralValueInfo
extends NumericalValueInfo


Method Summary
 int getValueAsInt()
          The value of this instance as a java int.
 boolean isValueAnInt()
          Determines whether the value of this tag can be represented in a java int.
 
Methods inherited from interface ch.panter.li.bi.asn.api.NumericalValueInfo
getValue, isNegative, isPositive, isZero
 

Method Detail

isValueAnInt

boolean isValueAnInt()
Determines whether the value of this tag can be represented in a java int.

Returns:
true if it is safe to call getValueAsInt() without losing information, false if getValue() should be used instead.

getValueAsInt

int getValueAsInt()
The value of this instance as a java int. Should only be called if isValueAnInt() returned true.

Returns:
the value of this instance as a java int (possibly with lost information in case it doesn't fit into a java int!)


Copyright 2007-2007 SourceForge. All Rights Reserved.