Method from org.apache.pdfbox.cos.COSInteger Detail: |
public Object accept(ICOSVisitor visitor) throws COSVisitorException {
return visitor.visitFromInt(this);
}
visitor pattern double dispatch method. |
public double doubleValue() {
return value;
}
polymorphic access to value as float. |
public boolean equals(Object o) {
return o instanceof COSInteger && ((COSInteger)o).intValue() == intValue();
}
|
public float floatValue() {
return value;
}
polymorphic access to value as float. |
public static COSInteger get(long val) {
if (LOW < = val && val < = HIGH) {
int index = (int) val - LOW;
// no synchronization needed
if (STATIC[index] == null) {
STATIC[index] = new COSInteger(val);
}
return STATIC[index];
} else {
return new COSInteger(val);
}
}
Returns a COSInteger instance with the given value. |
public int hashCode() {
//taken from java.lang.Long
return (int)(value ^ (value > > 32));
}
|
public int intValue() {
return (int)value;
}
Polymorphic access to value as int
This will get the integer value of this object. |
public long longValue() {
return value;
}
Polymorphic access to value as int
This will get the integer value of this object. |
public void setValue(long newValue) {
value = newValue;
}
Change the value of this reference. |
public String toString() {
return "COSInt{" + value + "}";
}
|
public void writePDF(OutputStream output) throws IOException {
output.write(String.valueOf(value).getBytes());
}
This will output this string as a PDF object. |