Class QueryProfileVariant

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<QueryProfileVariant>

    public class QueryProfileVariant
    extends java.lang.Object
    implements java.lang.Cloneable, java.lang.Comparable<QueryProfileVariant>
    A variant of a query profile
    • Method Detail

      • values

        public java.util.Map<java.lang.String,​java.lang.Object> values()
        Returns the live reference to the values of this. This may be modified if this is not frozen.
      • inherited

        public java.util.List<QueryProfile> inherited()
        Returns the live reference to the inherited profiles of this. This may be modified if this is not frozen.
      • set

        public void set​(java.lang.String key,
                        java.lang.Object newValue)
      • compareTo

        public int compareTo​(QueryProfileVariant 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<QueryProfileVariant>
      • matches

        public boolean matches​(DimensionValues givenDimensionValues)
      • accept

        public void accept​(boolean allowContent,
                           QueryProfileType type,
                           DimensionBinding dimensionBinding)
        Accepts a visitor to the values of this
      • freeze

        public void freeze()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object