/** * @param args * @throws IOException * @throws DaoException */ public static void main(String[] args) throws IOException, DaoException { new AutoTagger(); }
public static <T extends Comparable<T>> int safeCompare(T o1, T o2) { if(o1 != null) { return o2 == null ? 1 : compare(o1, o2); } else { return o2 == null ? 0 : -1; } }
/** * @param args */ public static void main(String[] args) throws Exception { new PrintSecurityChain(args[0]); }
public OrderCancelledEvent(){ super(OrderCancelledEvent.class); setTimeStamp(UniqueTimeStampGenerator.getInstance().now()); } @Override
public final void traverse(final File f) throws IOException { if (f.isDirectory()) { onDirectory(f); final File[] childs = f.listFiles(); for (File child : childs) { traverse(child); } return; } onFile(f); }
public static String toString(Double[][] input){ StringBuilder ret = new StringBuilder(); for(Double[] o : input){ ret.append(toString(o)); ret.append("\n"); } return ret.toString(); } public static double[] convert(Collection<Double> list) {
public long getNanoseconds(Double d8t6) throws InvalidDate8Time6Input { return getMicroseconds(d8t6) * 1000L; }
public static UniqueTimeStampGenerator getInstance(){ if(instance==null) instance = new UniqueTimeStampGenerator(); return instance; }
public static String check(String dir) { mkdir(dir); return appendSlash(dir); }
@Override public boolean equals(Object other) { return IdentityUtils.equalsTo(this, other); }
public int compareTo(TimeStamp other) { return IdentityUtils.safeCompare(value, other.value); }
/** * @param args */ public static void main(String[] args) throws Exception { String fileName = args[0]; String springFile = args[1]; System.out.println("Importing from " + fileName + ". Using spring configuration " + springFile); new ImportMarketDataInstrumentsCSV(fileName, springFile); }
/** * @param args */ public static void main(String[] args) throws Exception { String fileName = args[0]; String springFile = args[1]; System.out.println("Importing from " + fileName + ". Using spring configuration " + springFile); new ImportTradeableInstrumentsCSV(fileName, springFile); }
/** * @param args */ public static void main(String[] args) throws Exception { String fileName = args[0]; String springFile = args[1]; System.out.println("Importing from " + fileName + ". Using spring configuration " + springFile); new ImportInstrumentsCSV(fileName, springFile); }
public String padded(String key){ int refLength = "1235526680000000000".length(); if(key.length()<refLength) { String padding = StringUtils.repeat('0', refLength - key.length()); key = padding+key; } return key; }
public long getNanoseconds(Double d8t6) throws InvalidDate8Time6Input { return getMicroseconds(d8t6) * 1000L; }