Class QDLKey

    • Constructor Detail

      • QDLKey

        public QDLKey​(Object value)
    • Method Detail

      • from

        public static QDLKey from​(Object value)
        This will convert the POJO to a key. It does try to return the correct actual type so feeding in a string like "2" will result in a LongValue of 2. By the same token, decimal values are checked to see if they are actually integers
        Parameters:
        value -
        Returns:
      • decimalToLong

        protected static LongValue decimalToLong​(BigDecimal decimal)
        Decimals may be used as keys if they have a trivial fractional part. Since an expression like
             a := 6.0/3.0;
         
        would reliably yield the value 2.0, This should be usable as a stem index as the integer 2.
        Parameters:
        decimal -
        Returns:
      • from

        public static Collection<QDLKey> from​(Collection<Object> values)
        Converts a collection -- a list or set -- of objects to keys. Note that non-key values will cause an error.
        Parameters:
        values -
        Returns: