| Modifier and Type | Field and Description |
|---|---|
| private int | theInt
This class implements Formatable. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static FormatableIntHolder[] | Returns: An array of FormatableIntHoldersThe array of ints theInts)Create and return an array of FormatableIntHolders given an array of ints. |
| public int | |
| public int | Returns: the formatID of this classImplements org. Get the formatID which corresponds to this class. |
| public void | readExternal(ObjectInput
read this. in)Implements java. Read this formatable from a stream of stored objects. |
| public void | |
| public void | writeExternal(ObjectOutput
write bytes here out)Implements java. Write this formatable out |
| theInt | back to summary |
|---|---|
| private int theInt This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method. | |
| FormatableIntHolder | back to summary |
|---|---|
| public FormatableIntHolder() Niladic constructor for formatable | |
| FormatableIntHolder | back to summary |
|---|---|
| public FormatableIntHolder(int theInt) Construct a FormatableIntHolder using the input int.
| |
| getFormatableIntHolders | back to summary |
|---|---|
| public static FormatableIntHolder[] getFormatableIntHolders(int[] theInts) Create and return an array of FormatableIntHolders given an array of ints.
| |
| getInt | back to summary |
|---|---|
| public int getInt() Get the held int.
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Get the formatID which corresponds to this class.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException Implements java. Read this formatable from a stream of stored objects.
| |
| setInt | back to summary |
|---|---|
| public void setInt(int theInt) Set the held int to the input int.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Write this formatable out
| |