public class COSFixed extends COSNumber
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PRECISION |
CONSTANT_CONTAINER, NULL_CONTAINER, SLOT_CONTAINER| Modifier and Type | Method and Description |
|---|---|
Object |
accept(ICOSObjectVisitor visitor)
Accept a visitor object.
|
COSFixed |
asFixed() |
static COSFixed |
create(byte[] bytes,
int start,
int length) |
static COSFixed |
create(double value) |
static COSFixed |
create(double value,
int precision) |
static COSFixed |
create(float value) |
static COSFixed |
create(float value,
int precision) |
boolean |
equals(Object o) |
float |
floatValue()
Answer the value of the receiver as a float
|
int |
getPrecision()
The precision (digits after period) for this.
|
int |
hashCode() |
int |
intValue()
Answer the value of the receiver as a int
|
void |
restoreState(Object object) |
Object |
saveState() |
void |
setPrecision(int precision)
Assign the precision for this.
|
addObjectListener, basicIterator, copyDeep, copyDeep, isDangling, isObjectListenerAvailable, isPrimitive, iterator, removeObjectListenerasArray, asBoolean, asDictionary, asInteger, asName, asNull, asStream, asString, beConstant, beIndirect, containable, copyOptional, copyShallow, copySubGraph, dereference, getContainer, getDoc, getIndirectObject, getValueBoolean, getValueBytes, getValueFloat, getValueInteger, getValueString, harden, isIndirect, isNull, isSwapped, mayBeSwapped, soften, stringValue, toStringhandleException, isReferencepublic static final int DEFAULT_PRECISION
public static COSFixed create(byte[] bytes, int start, int length)
public static COSFixed create(double value)
public static COSFixed create(double value, int precision)
public static COSFixed create(float value)
public static COSFixed create(float value, int precision)
public Object accept(ICOSObjectVisitor visitor) throws COSVisitorException
COSDocumentElementvisitor by "double dispatching".accept in class COSDocumentElementvisitor - The object visiting the receiver.COSVisitorException - An exception depending on the visitor semantics.public COSFixed asFixed()
public float floatValue()
COSNumberfloatValue in class COSNumberpublic int getPrecision()
public int intValue()
COSNumberpublic void restoreState(Object object)
restoreState in interface de.intarsys.tools.component.ISaveStateSupportrestoreState in class COSObjectpublic Object saveState()
public void setPrecision(int precision)
precision - The new precision.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.