Class ConstantIntValue

    • Constructor Detail

      • ConstantIntValue

        public ConstantIntValue​(int value)
    • Method Detail

      • getInt

        public int getInt()
        Description copied from interface: IntValue
        Get the int representation of the current value.

        NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.

        Specified by:
        getInt in interface IntValue
        Returns:
        the current value
      • getLong

        public long getLong()
        Description copied from interface: LongValue
        Get the long representation of the current value.

        NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.

        Specified by:
        getLong in interface LongValue
        Returns:
        the current value
      • getFloat

        public float getFloat()
        Description copied from interface: FloatValue
        Get the float representation of the current value.

        NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.

        Specified by:
        getFloat in interface FloatValue
        Returns:
        the current value
      • getDouble

        public double getDouble()
        Description copied from interface: DoubleValue
        Get the double representation of the current value.

        NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.

        Specified by:
        getDouble in interface DoubleValue
        Returns:
        the current value
      • getString

        public String getString()
        Description copied from interface: StringValue
        Get the String representation of the current value.

        NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.

        Specified by:
        getString in interface StringValue
        Returns:
        the current value
      • getObject

        public Object getObject()
        Description copied from interface: AnalyticsValue
        Get the object representation of the current value.
        Specified by:
        getObject in interface AnalyticsValue
        Returns:
        the current value
      • exists

        public boolean exists()
        Description copied from interface: AnalyticsValue
        Check whether the current value exists.
        NOTE: The result of this method is only guaranteed after any get<Type>() method is called.
        Specified by:
        exists in interface AnalyticsValue
        Returns:
        whether the current value exists
      • streamInts

        public void streamInts​(IntConsumer cons)
        Description copied from interface: IntValueStream
        Stream the int representations of all current values, if any exist.
        Specified by:
        streamInts in interface IntValueStream
        Parameters:
        cons - The consumer to accept the values
      • streamLongs

        public void streamLongs​(LongConsumer cons)
        Description copied from interface: LongValueStream
        Stream the long representations of all current values, if any exist.
        Specified by:
        streamLongs in interface LongValueStream
        Parameters:
        cons - The consumer to accept the values
      • streamFloats

        public void streamFloats​(FloatConsumer cons)
        Description copied from interface: FloatValueStream
        Stream the float representations of all current values, if any exist.
        Specified by:
        streamFloats in interface FloatValueStream
        Parameters:
        cons - The consumer to accept the values
      • streamDoubles

        public void streamDoubles​(DoubleConsumer cons)
        Description copied from interface: DoubleValueStream
        Stream the double representations of all current values, if any exist.
        Specified by:
        streamDoubles in interface DoubleValueStream
        Parameters:
        cons - The consumer to accept the values
      • streamStrings

        public void streamStrings​(Consumer<String> cons)
        Description copied from interface: StringValueStream
        Stream the String representations of all current values, if any exist.
        Specified by:
        streamStrings in interface StringValueStream
        Parameters:
        cons - The consumer to accept the values
      • getObjectComparator

        public ConstantComparator getObjectComparator​(String expression)
        Description copied from interface: ComparableValue
        Create an entry comparator used to sort the facet-value buckets of a facet.
        Specified by:
        getObjectComparator in interface ComparableValue
        Parameters:
        expression - the name of the expression in the results array
        Returns:
        a comparator to sort the buckets with