public class PjBoolean extends PjObject
| Modifier and Type | Field and Description |
|---|---|
private boolean |
_b |
static PjBoolean |
FALSE |
static PjBoolean |
TRUE |
| Constructor and Description |
|---|
PjBoolean(boolean b)
Creates a Boolean 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 PjBoolean objects for equality.
|
boolean |
getBoolean()
Returns the Boolean value of this object.
|
long |
writePdf(java.io.OutputStream os)
Writes this Boolean to a stream in PDF format.
|
public static final PjBoolean TRUE
public static final PjBoolean FALSE
private boolean _b
public PjBoolean(boolean b)
b - the Boolean value to initialize this object to.public boolean getBoolean()
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.