public class PjNumber extends PjObject
| Modifier and Type | Field and Description |
|---|---|
private float |
_f |
static PjNumber |
ONE |
static PjNumber |
TWO |
static PjNumber |
ZERO |
| Constructor and Description |
|---|
PjNumber(float f)
Creates a number object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a deep copy of this object.
|
boolean |
equals(java.lang.Object obj)
Compares two PjNumber objects for equality.
|
float |
getFloat()
Returns the floating point value of this object.
|
int |
getInt()
Returns the integer value of this object.
|
long |
getLong()
Returns the long value of this object.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isInteger()
Determines whether this number is an integer.
|
long |
writePdf(java.io.OutputStream os)
Writes this number object to a stream in PDF format.
|
public static final PjNumber ZERO
public static final PjNumber ONE
public static final PjNumber TWO
private float _f
public PjNumber(float f)
f - the numeric value to initialize this object to.public float getFloat()
public int getInt()
public long getLong()
public boolean isInteger()
public long writePdf(java.io.OutputStream os)
throws java.io.IOException
writePdf in class BaseObjectos - the stream to write to.java.io.IOException - if an I/O error occurs.public java.lang.Object clone()
clone in class BaseObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object to compare to.public int hashCode()
hashCode in class java.lang.Object