com.exponto.jstock
Class Util

java.lang.Object
  |
  +--com.exponto.jstock.Util

public class Util
extends java.lang.Object

Some static methods that are more or less usefull.

Author:
kaare

Constructor Summary
Util()
           
 
Method Summary
static LogTradingData convertString(java.lang.String str)
          Converts a string to LogTradingData
static boolean evalute(java.lang.Object[] rule, LogTradingData lTD)
           
static java.lang.String findSubString(java.lang.String s, int i)
          Find a substring in tab, comma or space separated string.
static boolean validate(LogDataSeries lDS)
          Validates that a data series is likly to be correct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

convertString

public static LogTradingData convertString(java.lang.String str)
Converts a string to LogTradingData

Parameters:
str - that includes all needed data for a day
Returns:
Logtradingdata for the day

validate

public static boolean validate(LogDataSeries lDS)
Validates that a data series is likly to be correct

Parameters:
lDS - The LogDataSeries to be validated
Returns:
true if the data MIGHT be corect

findSubString

public static java.lang.String findSubString(java.lang.String s,
                                             int i)
Find a substring in tab, comma or space separated string. 0 is first substring

Returns:
the substring that is found.

evalute

public static boolean evalute(java.lang.Object[] rule,
                              LogTradingData lTD)


Copyright © 2004 Kaare Ranum