org.apache.derby.iapi.services.io
Class FormatableIntHolder
- java.lang.Object
-
- org.apache.derby.iapi.services.io.FormatableIntHolder
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat
public class FormatableIntHolder extends java.lang.Object implements Formatable
A formatable holder for an int.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description FormatableIntHolder()Niladic constructor for formatableFormatableIntHolder(int theInt)Construct a FormatableIntHolder using the input int.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static FormatableIntHolder[]getFormatableIntHolders(int[] theInts)Create and return an array of FormatableIntHolders given an array of ints.intgetInt()Get the held int.intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read this formatable from a stream of stored objects.voidsetInt(int theInt)Set the held int to the input int.voidwriteExternal(java.io.ObjectOutput out)Write this formatable out
-
-
-
Constructor Detail
-
FormatableIntHolder
public FormatableIntHolder()
Niladic constructor for formatable
-
FormatableIntHolder
public FormatableIntHolder(int theInt)
Construct a FormatableIntHolder using the input int.- Parameters:
theInt- the int to hold
-
-
Method Detail
-
setInt
public void setInt(int theInt)
Set the held int to the input int.- Parameters:
theInt- the int to hold
-
getInt
public int getInt()
Get the held int.- Returns:
- The held int.
-
getFormatableIntHolders
public static FormatableIntHolder[] getFormatableIntHolders(int[] theInts)
Create and return an array of FormatableIntHolders given an array of ints.- Parameters:
theInts- The array of ints- Returns:
- An array of FormatableIntHolders
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this formatable out- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- write bytes here- Throws:
java.io.IOException- thrown on error
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOExceptionRead this formatable from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
-
DataMelt 3.0 © DataMelt by jWork.ORG