Class ValueWithSource


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

      Constructors 
      Constructor Description
      ValueWithSource​(java.lang.Object value, java.lang.String source, DimensionValues variant)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String source()  
      java.lang.String toString()  
      java.lang.Object value()  
      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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValueWithSource

        public ValueWithSource​(java.lang.Object value,
                               java.lang.String source,
                               DimensionValues variant)
    • Method Detail

      • value

        public java.lang.Object value()
      • source

        public java.lang.String source()
      • variant

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

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