net.bluebones.Gambler
Class OddsParser

java.lang.Object
  |
  +--net.bluebones.Gambler.OddsParser

public class OddsParser
extends java.lang.Object

Utility that reads String representations of odds


Constructor Summary
OddsParser()
           
 
Method Summary
static double parse(java.lang.String s)
          Parses a String representation of odds and returns a double of the decimal odds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OddsParser

public OddsParser()
Method Detail

parse

public static double parse(java.lang.String s)
Parses a String representation of odds and returns a double of the decimal odds. For example: "7/2" becomes 3.5 ".5" becomes .5

Parameters:
s - String to parse to decimal odds