sbrt.shell.text
Interface LongFormat

All Superinterfaces:
Format, Formatter<java.lang.Long>, Parser<java.lang.Long>, SimpleFormat<java.lang.Long>
All Known Implementing Classes:
LongFormatV1

public interface LongFormat
extends SimpleFormat<java.lang.Long>

This interface is used to represent a format for longs.

Author:
This interface was written and documented by Jeremiah Wright while in the Wagner lab.

Method Summary
 java.lang.String format(long i)
          Returns a formatted string representation of the provided long.
 java.lang.String format(java.lang.Long i)
          Returns a formatted string representation of the provided long.
 java.lang.Long parse(java.lang.String i)
          Parses the provided string and returns its corresponding long.
 long parsePrimitive(java.lang.String i)
          Parses the provided string and returns its corresponding long.
 

Method Detail

format

java.lang.String format(java.lang.Long i)
Returns a formatted string representation of the provided long.

Specified by:
format in interface Formatter<java.lang.Long>
Parameters:
i - the long to be formatted.
Returns:
a formatted string representation of the provided long.

format

java.lang.String format(long i)
Returns a formatted string representation of the provided long.

Parameters:
i - the long to be formatted.
Returns:
a formatted string representation of the provided long.

parse

java.lang.Long parse(java.lang.String i)
Parses the provided string and returns its corresponding long.

Specified by:
parse in interface Parser<java.lang.Long>
Parameters:
i - the string to be parsed.
Returns:
the long corresponding to the provided string.

parsePrimitive

long parsePrimitive(java.lang.String i)
Parses the provided string and returns its corresponding long.

Parameters:
i - the string to be parsed.
Returns:
the long corresponding to the provided string.