com.devexperts.qd.util
Class MappingUtil

java.lang.Object
  extended by com.devexperts.qd.util.MappingUtil

public class MappingUtil
extends java.lang.Object


Method Summary
static int findIntField(DataRecord record, java.lang.String localName, boolean required)
           
static int findObjField(DataRecord record, java.lang.String localName, boolean required)
           
static com.devexperts.io.Marshalled<?> getMarshalled(java.lang.Object object)
           
static int getMillis(long millis)
          Returns correct number of milliseconds with proper handling negative values.
static int getSeconds(long millis)
          Returns correct number of seconds with proper handling negative values and overflows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findIntField

public static int findIntField(DataRecord record,
                               java.lang.String localName,
                               boolean required)

findObjField

public static int findObjField(DataRecord record,
                               java.lang.String localName,
                               boolean required)

getSeconds

public static int getSeconds(long millis)
Returns correct number of seconds with proper handling negative values and overflows. Idea is that number of milliseconds shall be within [0..999].


getMillis

public static int getMillis(long millis)
Returns correct number of milliseconds with proper handling negative values. Idea is that number of milliseconds shall be within [0..999].


getMarshalled

public static com.devexperts.io.Marshalled<?> getMarshalled(java.lang.Object object)