public class Time
extends Format
-
-
Constructor Summary
Constructors
-
Method Summary
boolean
Tests if the provided placeholder (and possibly output) is readable with this format
double
Converts the provided input to a double using this format
Converts a double into this format
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
Method Details
-
matches
Description copied from class: Format
Tests if the provided placeholder (and possibly output) is readable with this format
- Specified by:
matches in class Format
- Parameters:
output - The string output from the placeholder
placeholder - the placeholder without %
- Returns:
- True if this format supports parsing the output, false if it doesn't, or we're not sure
-
toDouble
public double toDouble(String input)
Description copied from class: Format
Converts the provided input to a double using this format
- Specified by:
toDouble in class Format
- Parameters:
input - The string output from the placeholder
- Returns:
- A double representing the string format
-
-
getName
- Specified by:
getName in class Format
- Returns:
- the (unique) name of this format