Class FormatableLongHolder
- java.lang.Object
-
- org.apache.derby.iapi.services.io.FormatableLongHolder
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Formatable,TypedFormat
public class FormatableLongHolder extends java.lang.Object implements Formatable
A formatable holder for an long.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private longtheLong
-
Constructor Summary
Constructors Constructor Description FormatableLongHolder()Niladic constructor for formatableFormatableLongHolder(long theLong)Construct a FormatableLongHolder using the input integer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormatableLongHolder[]getFormatableLongHolders(long[] theLongs)Create and return an array of FormatableLongHolders given an array of ints.longgetLong()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.voidsetLong(int theLong)Set the held long to the input int.voidwriteExternal(java.io.ObjectOutput out)Write this formatable out
-
-
-
Method Detail
-
setLong
public void setLong(int theLong)
Set the held long to the input int.- Parameters:
theLong- the int to hold
-
getLong
public long getLong()
Get the held int.- Returns:
- The held int.
-
getFormatableLongHolders
public static FormatableLongHolder[] getFormatableLongHolders(long[] theLongs)
Create and return an array of FormatableLongHolders given an array of ints.- Parameters:
theLongs- The array of longs- Returns:
- An array of FormatableLongHolders
-
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
-
-