sbrt.shell.text
Interface BooleanFormat

All Superinterfaces:
Format, Formatter<java.lang.Boolean>, Parser<java.lang.Boolean>, SimpleFormat<java.lang.Boolean>
All Known Implementing Classes:
TrueFalseFormat, YesNoFormat

public interface BooleanFormat
extends SimpleFormat<java.lang.Boolean>

This interface is used to represent a format for boolean values.

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

Method Summary
 java.lang.String format(boolean b)
          Returns a formatted string representation of the provided boolean value.
 java.lang.String format(java.lang.Boolean b)
          Returns a formatted string representation of the provided boolean value.
 java.lang.Boolean parse(java.lang.String b)
          Parses the provided string and returns its corresponding boolean value.
 boolean parsePrimitive(java.lang.String b)
          Parses the provided string and returns its corresponding boolean value.
 

Method Detail

format

java.lang.String format(java.lang.Boolean b)
Returns a formatted string representation of the provided boolean value.

Specified by:
format in interface Formatter<java.lang.Boolean>
Parameters:
b - the boolean value to be formatted.
Returns:
a formatted string representation of the provided boolean value.

format

java.lang.String format(boolean b)
Returns a formatted string representation of the provided boolean value.

Parameters:
b - the boolean value to be formatted.
Returns:
a formatted string representation of the provided boolean value.

parse

java.lang.Boolean parse(java.lang.String b)
Parses the provided string and returns its corresponding boolean value.

Specified by:
parse in interface Parser<java.lang.Boolean>
Parameters:
b - the string to be parsed.
Returns:
the boolean value corresponding to the provided string.

parsePrimitive

boolean parsePrimitive(java.lang.String b)
Parses the provided string and returns its corresponding boolean value.

Parameters:
b - the string to be parsed.
Returns:
the boolean value corresponding to the provided string.