PJX

com.etymon.pjx
Class PdfBoolean

java.lang.Object
  extended bycom.etymon.pjx.PdfObject
      extended bycom.etymon.pjx.PdfBoolean
All Implemented Interfaces:
java.lang.Cloneable

public class PdfBoolean
extends PdfObject

Represents the PDF Boolean object.


Field Summary
static PdfBoolean FALSE
          A PdfBoolean object representing the Boolean value false.
static PdfBoolean TRUE
          A PdfBoolean object representing the Boolean value true.
 
Constructor Summary
PdfBoolean(boolean b)
          Constructs a Boolean object representing a Boolean value.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this instance with another PDF object for equality.
 boolean getBoolean()
          Returns the Boolean value of this object.
 int hashCode()
          Returns a hash code for this object.
static PdfBoolean valueOf(boolean b)
          Returns a PdfBoolean object with the specified value.
 
Methods inherited from class com.etymon.pjx.PdfObject
clone, filter, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FALSE

public static final PdfBoolean FALSE
A PdfBoolean object representing the Boolean value false.


TRUE

public static final PdfBoolean TRUE
A PdfBoolean object representing the Boolean value true.

Constructor Detail

PdfBoolean

public PdfBoolean(boolean b)
Constructs a Boolean object representing a Boolean value. In most cases there is no need to create a new instance of this class, and the valueOf(boolean) method is preferred.

Parameters:
b - the Boolean value.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Description copied from class: PdfObject
Compares this instance with another PDF object for equality.

Overrides:
equals in class PdfObject
Parameters:
obj - the object to compare this instance with.
Returns:
true if the PDF objects are equal.

getBoolean

public boolean getBoolean()
Returns the Boolean value of this object.

Returns:
the Boolean value.

hashCode

public int hashCode()
Description copied from class: PdfObject
Returns a hash code for this object.

Overrides:
hashCode in class PdfObject
Returns:
the hash code.

valueOf

public static PdfBoolean valueOf(boolean b)
Returns a PdfBoolean object with the specified value. This method is normally preferable to PdfBoolean(boolean) because it avoids allocating a new instance.

Parameters:
b - the Boolean value.
Returns:
the Boolean object.

Copyright © 1998-2004 Etymon Systems, Inc.

The PDF data structures, operators, and specification are
Copyright © 1985-2004 Adobe Systems Incorporated.