Class MultiTypeValue


  • public class MultiTypeValue
    extends java.lang.Object
    This class holds a value for each of the type classes, in case we need to pass all of the possibilities along until we can know for sure which to use.
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiTypeValue​(Dataset dsVal)  
      MultiTypeValue​(java.lang.Long intVal, java.lang.Double dblVal, java.lang.String strVal, java.util.Date dtVal)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getBestGuess()
      Returns the first non-null value in the order: Double,Int,Str,Date,Dataset.
      java.lang.Object getValue​(DataTypeClass type)
      Gets the value for the specified type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiTypeValue

        public MultiTypeValue​(java.lang.Long intVal,
                              java.lang.Double dblVal,
                              java.lang.String strVal,
                              java.util.Date dtVal)
      • MultiTypeValue

        public MultiTypeValue​(Dataset dsVal)
    • Method Detail

      • getValue

        public java.lang.Object getValue​(DataTypeClass type)
        Gets the value for the specified type. If type is null, returns the first non-null value. Ultimately returns null if nothing is found.
      • getBestGuess

        public java.lang.Object getBestGuess()
        Returns the first non-null value in the order: Double,Int,Str,Date,Dataset.