sbrt.shell.text
Interface IntegerFormat

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

public interface IntegerFormat
extends SimpleFormat<java.lang.Integer>

This interface is used to represent a format for integers.

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

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

Method Detail

format

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

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

format

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

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

parse

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

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

parsePrimitive

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

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