com.splitforce.lib
Class SplitforceData

java.lang.Object
  extended by com.splitforce.lib.SplitforceData
All Implemented Interfaces:
SfData

public class SplitforceData
extends java.lang.Object
implements SfData


Method Summary
static SplitforceData getInstance(java.lang.String value)
           
 boolean toBoolean()
           
 int toColor()
          Parses color String hex into an integer hex value.
 double toDouble()
           
 float toFloat()
           
 int toInt()
           
 long toLong()
           
 int toPixelsFromDp(android.util.DisplayMetrics metrics)
          Returns the number of pixels represented by a dp unit on this particular screen.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static SplitforceData getInstance(java.lang.String value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toColor

public int toColor()
Description copied from interface: SfData
Parses color String hex into an integer hex value.

Specified by:
toColor in interface SfData
Returns:
The color's integer hex.

toInt

public int toInt()
Specified by:
toInt in interface SfData

toFloat

public float toFloat()
Specified by:
toFloat in interface SfData

toDouble

public double toDouble()
Specified by:
toDouble in interface SfData

toLong

public long toLong()
Specified by:
toLong in interface SfData

toBoolean

public boolean toBoolean()
Specified by:
toBoolean in interface SfData

toPixelsFromDp

public int toPixelsFromDp(android.util.DisplayMetrics metrics)
Description copied from interface: SfData
Returns the number of pixels represented by a dp unit on this particular screen.

Specified by:
toPixelsFromDp in interface SfData
Parameters:
metrics - Used to get information about the user's screen.
Returns:
the number of pixels converted from dp