Top Description Fields Constructors Methods
org.apache.derby.iapi.services.io

public Class FormatableLongHolder

extends Object
implements Formatable
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.io.Formatable, org.apache.derby.iapi.services.io.TypedFormat, java.io.Externalizable, java.io.Serializable
Imports
java.io.ObjectOutput, .ObjectInput, .IOException

A formatable holder for an long.

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
public
FormatableLongHolder()

Niladic constructor for formatable

public
FormatableLongHolder(long
the long to hold
theLong
)

Construct a FormatableLongHolder using the input integer.

Method Summary

Modifier and TypeMethod and Description
public static FormatableLongHolder[]

Returns:

An array of FormatableLongHolders
getFormatableLongHolders
(long[]
The array of longs
theLongs
)

Create and return an array of FormatableLongHolders given an array of ints.

public long

Returns:

The held int.
getLong
()

Get the held int.

public int

Returns:

the formatID of this class
getTypeFormatId
()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

public void
readExternal(ObjectInput
read this.
in
)

Implements java.io.Externalizable.readExternal.

Read this formatable from a stream of stored objects.

public void
setLong(int
the int to hold
theLong
)

Set the held long to the input int.

public void
writeExternal(ObjectOutput
write bytes here
out
)

Implements java.io.Externalizable.writeExternal.

Write this formatable out

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theLongback to summary
private long theLong

Constructor Detail

FormatableLongHolderback to summary
public FormatableLongHolder()

Niladic constructor for formatable

FormatableLongHolderback to summary
public FormatableLongHolder(long theLong)

Construct a FormatableLongHolder using the input integer.

Parameters
theLong:long

the long to hold

Method Detail

getFormatableLongHoldersback to summary
public static FormatableLongHolder[] getFormatableLongHolders(long[] theLongs)

Create and return an array of FormatableLongHolders given an array of ints.

Parameters
theLongs:long[]

The array of longs

Returns:FormatableLongHolder[]

An array of FormatableLongHolders

getLongback to summary
public long getLong()

Get the held int.

Returns:long

The held int.

getTypeFormatIdback to summary
public int getTypeFormatId()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

Returns:int

the formatID of this class

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException

Implements java.io.Externalizable.readExternal.

Read this formatable from a stream of stored objects.

Parameters
in:ObjectInput

read this.

Exceptions
IOException:
thrown on error
setLongback to summary
public void setLong(int theLong)

Set the held long to the input int.

Parameters
theLong:int

the int to hold

writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Write this formatable out

Parameters
out:ObjectOutput

write bytes here

Exceptions
IOException:
thrown on error