Class QueryProfileVariants.FieldValue

    • Constructor Detail

      • FieldValue

        public FieldValue​(DimensionValues dimensionValues,
                          java.lang.Object value)
    • Method Detail

      • getDimensionValues

        public DimensionValues getDimensionValues()
        Returns the dimension values for which this value should be used. The dimension array is always of the exact size of the dimensions specified by the owning QueryProfileVariants, and the values appear in the order defined. "Wildcard" dimensions are represented by a null.
      • getValue

        public java.lang.Object getValue()
        Returns the value to use for this set of dimension values
      • setValue

        public void setValue​(java.lang.Object value)
        Sets the value to use for this set of dimension values
      • matches

        public boolean matches​(DimensionValues givenDimensionValues)
      • compareTo

        public int compareTo​(QueryProfileVariants.FieldValue other)
        Implements the sort order of this which is based on specificity where dimensions to the left are more significant.

        Note: This ordering is not consistent with equals - it returns 0 when the same dimensions are set, regardless of what they are set to.

        Specified by:
        compareTo in interface java.lang.Comparable<QueryProfileVariants.FieldValue>