public class ConstantIntValue extends ConstantValue implements IntValue.CastingIntValue
IntValue.AbstractIntValue, IntValue.CastingIntValueIntValueStream.AbstractIntValueStream, IntValueStream.CastingIntValueStreamLongValue.AbstractLongValue, LongValue.CastingLongValueLongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStreamFloatValue.AbstractFloatValue, FloatValue.CastingFloatValueFloatValueStream.AbstractFloatValueStream, FloatValueStream.CastingFloatValueStreamDoubleValue.AbstractDoubleValue, DoubleValue.CastingDoubleValueDoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStreamStringValue.AbstractStringValue, StringValue.CastingStringValueStringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStreamAnalyticsValue.AbstractAnalyticsValueAnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType| Modifier and Type | Field and Description | 
|---|---|
| static String | name | 
creatorFunction| Constructor and Description | 
|---|
| ConstantIntValue(int value) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | exists()Check whether the current value exists. | 
| double | getDouble()Get the double representation of the current value. | 
| String | getExpressionStr()Get the expression string of the analytics value stream. | 
| AnalyticsValueStream.ExpressionType | getExpressionType()Get the type of the expression that this class represents. | 
| float | getFloat()Get the float representation of the current value. | 
| int | getInt()Get the int representation of the current value. | 
| long | getLong()Get the long representation of the current value. | 
| String | getName()Get the name of function or value. | 
| Object | getObject()Get the object representation of the current value. | 
| ConstantComparator | getObjectComparator(String expression)Create an entry comparator used to sort the facet-value buckets of a facet. | 
| String | getString()Get the String representation of the current value. | 
| void | streamDoubles(DoubleConsumer cons)Stream the double representations of all current values, if any exist. | 
| void | streamFloats(FloatConsumer cons)Stream the float representations of all current values, if any exist. | 
| void | streamInts(IntConsumer cons)Stream the int representations of all current values, if any exist. | 
| void | streamLongs(LongConsumer cons)Stream the long representations of all current values, if any exist. | 
| void | streamObjects(Consumer<Object> cons)Stream the object representations of all current values, if any exist. | 
| void | streamStrings(Consumer<String> cons)Stream the String representations of all current values, if any exist. | 
convertToConstantclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToConstant, createExpressionString, determineMappingPhasepublic static final String name
public int getInt()
IntValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
public long getLong()
LongValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
public float getFloat()
FloatValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
getFloat in interface FloatValuepublic double getDouble()
DoubleValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
getDouble in interface DoubleValuepublic String getString()
StringValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
getString in interface StringValuepublic Object getObject()
AnalyticsValuegetObject in interface AnalyticsValuepublic boolean exists()
AnalyticsValueget<Type>() method is called.exists in interface AnalyticsValuepublic void streamInts(IntConsumer cons)
IntValueStreamstreamInts in interface IntValueStreamcons - The consumer to accept the valuespublic void streamLongs(LongConsumer cons)
LongValueStreamstreamLongs in interface LongValueStreamcons - The consumer to accept the valuespublic void streamFloats(FloatConsumer cons)
FloatValueStreamstreamFloats in interface FloatValueStreamcons - The consumer to accept the valuespublic void streamDoubles(DoubleConsumer cons)
DoubleValueStreamstreamDoubles in interface DoubleValueStreamcons - The consumer to accept the valuespublic void streamStrings(Consumer<String> cons)
StringValueStreamstreamStrings in interface StringValueStreamcons - The consumer to accept the valuespublic void streamObjects(Consumer<Object> cons)
AnalyticsValueStreamstreamObjects in interface AnalyticsValueStreamcons - The consumer to accept the valuespublic ConstantComparator getObjectComparator(String expression)
ComparableValuegetObjectComparator in interface ComparableValueexpression - the name of the expression in the results arraypublic String getName()
AnalyticsValueStreamgetName in interface AnalyticsValueStreampublic String getExpressionStr()
AnalyticsValueStreamExpressionFactory.createExpression(String), the exact same expression should be created.getExpressionStr in interface AnalyticsValueStreampublic AnalyticsValueStream.ExpressionType getExpressionType()
AnalyticsValueStreamgetExpressionType in interface AnalyticsValueStreamCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.