![]() |
All Packages This Package Class Hierarchy Class Search Index Class calypso.util.SignedIntegerjava.lang.Object | +----calypso.util.SignedInteger Utility class that represents the parse state from parsing a signed integer. The sign of the integer is maintained so that "10" can be distinguished from "+10". In addition, we can optionally handle numbers expressed as percentages.
See Also: Integer.parseInt
public class SignedInteger
extends java.lang.Object
{
// Fields 6
public static final int MINUS;
public static final int NONE;
public static final int PLUS;
protected boolean fPct;
protected int fSign;
protected int fValue;
// Constructors 2
public SignedInteger(int, int);
public SignedInteger(String, boolean) throws NumberFormatException;
// Methods 5
public int computeValue(int);
public int getSign();
public int intValue();
public boolean isPct();
public String toString();
}
Fields PLUSpublic static final int PLUS MINUSpublic static final int MINUS NONEpublic static final int NONE fValueprotected int fValue fSignprotected int fSign fPctprotected boolean fPct
Constructors SignedIntegerpublic SignedInteger(String aString, boolean aAllowPct) throws NumberFormatException
SignedInteger
public SignedInteger(int aValue,
int aSign)
Methods intValuepublic int intValue() isPctpublic boolean isPct() computeValuepublic int computeValue(int aBaseValue)
getSignpublic int getSign()
toStringpublic String toString() All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4 |
|
|
Copyright © 1998-1999 The Mozilla Organization.
Last modified December 25, 1998. |
|