org.opengts.util
Class StringTools.FilterNumber

java.lang.Object
  extended by org.opengts.util.StringTools.FilterNumber
Enclosing class:
StringTools

public static class StringTools.FilterNumber
extends java.lang.Object

Class used to parse numeric values


Constructor Summary
StringTools.FilterNumber(java.lang.String val, java.lang.Class<?> type)
           
 
Method Summary
 java.lang.Class getClassType()
           
 java.lang.String getClassTypeName()
           
 int getEnd()
           
 java.lang.String getInputString()
           
 int getLength()
           
 int getStart()
           
 java.lang.String getValueString()
           
 boolean hasDecimalPoint()
           
 boolean isHex()
           
 boolean isValid(boolean strict)
           
<T> boolean
supportsType(java.lang.Class<T> ct)
           
 java.lang.Number toNumber(java.lang.Number dft)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringTools.FilterNumber

public StringTools.FilterNumber(java.lang.String val,
                                java.lang.Class<?> type)
Method Detail

supportsType

public <T> boolean supportsType(java.lang.Class<T> ct)

getInputString

public java.lang.String getInputString()

getClassType

public java.lang.Class getClassType()

getClassTypeName

public java.lang.String getClassTypeName()

isHex

public boolean isHex()

getValueString

public java.lang.String getValueString()

hasDecimalPoint

public boolean hasDecimalPoint()

isValid

public boolean isValid(boolean strict)

getStart

public int getStart()

getEnd

public int getEnd()

getLength

public int getLength()

toNumber

public java.lang.Number toNumber(java.lang.Number dft)

toString

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