java.io.Externalizable, java.io.Serializable, Formatable, TypedFormatpublic class FormatableIntHolder extends java.lang.Object implements Formatable
| Modifier and Type | Field | Description |
|---|---|---|
private int |
theInt |
This class implements Formatable.
|
| Constructor | Description |
|---|---|
FormatableIntHolder() |
Niladic constructor for formatable
|
FormatableIntHolder(int theInt) |
Construct a FormatableIntHolder using the input int.
|
| Modifier and Type | Method | Description |
|---|---|---|
static FormatableIntHolder[] |
getFormatableIntHolders(int[] theInts) |
Create and return an array of FormatableIntHolders
given an array of ints.
|
int |
getInt() |
Get the held int.
|
int |
getTypeFormatId() |
Get the formatID which corresponds to this class.
|
void |
readExternal(java.io.ObjectInput in) |
Read this formatable from a stream of stored objects.
|
void |
setInt(int theInt) |
Set the held int to the input int.
|
void |
writeExternal(java.io.ObjectOutput out) |
Write this formatable out
|
private int theInt
public FormatableIntHolder()
public FormatableIntHolder(int theInt)
theInt - the int to holdpublic void setInt(int theInt)
theInt - the int to holdpublic int getInt()
public static FormatableIntHolder[] getFormatableIntHolders(int[] theInts)
theInts - The array of intspublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes herejava.io.IOException - thrown on errorpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablein - read this.java.io.IOException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.