Class ValueWithSource


  • public class ValueWithSource
    extends java.lang.Object
    A value in a query profile with information about its source.
    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean isQueryProfile()
      Returns true if this key references a query profile (i.e a non-leaf).
      boolean isUnoverridable()
      Returns true if this value cannot be overridden in queries
      QueryProfileType queryProfileType()
      Returns tye type of this if it refers to a query profile (not a leaf value), and it has a type
      java.lang.String source()
      Returns the source of the query profile having a value
      java.lang.String toString()  
      java.lang.Object value()
      Returns the value at this key, or null if none (in which case this is references a query profile which has no value set).
      java.util.Optional<DimensionValues> variant()
      Returns the variant having this value, or empty if it's not in a variant
      ValueWithSource withValue​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValueWithSource

        public ValueWithSource​(java.lang.Object value,
                               java.lang.String source,
                               boolean isUnoverridable,
                               boolean isQueryProfile,
                               QueryProfileType type,
                               DimensionValues variant)
    • Method Detail

      • value

        public java.lang.Object value()
        Returns the value at this key, or null if none (in which case this is references a query profile which has no value set).
      • source

        public java.lang.String source()
        Returns the source of the query profile having a value
      • isUnoverridable

        public boolean isUnoverridable()
        Returns true if this value cannot be overridden in queries
      • isQueryProfile

        public boolean isQueryProfile()
        Returns true if this key references a query profile (i.e a non-leaf). In this case the value may or may not be null, as non-leafs may have values.
      • queryProfileType

        public QueryProfileType queryProfileType()
        Returns tye type of this if it refers to a query profile (not a leaf value), and it has a type
      • variant

        public java.util.Optional<DimensionValues> variant()
        Returns the variant having this value, or empty if it's not in a variant
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

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