public abstract static class IntValue.AbstractIntValue extends Object implements IntValue.CastingIntValue
IntValue.CastingIntValue
that automatically casts to all types if IntValue.getInt()
and AnalyticsValue.exists()
are implemented.IntValue.AbstractIntValue, IntValue.CastingIntValue
IntValueStream.AbstractIntValueStream, IntValueStream.CastingIntValueStream
LongValue.AbstractLongValue, LongValue.CastingLongValue
LongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStream
FloatValue.AbstractFloatValue, FloatValue.CastingFloatValue
FloatValueStream.AbstractFloatValueStream, FloatValueStream.CastingFloatValueStream
DoubleValue.AbstractDoubleValue, DoubleValue.CastingDoubleValue
DoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStream
StringValue.AbstractStringValue, StringValue.CastingStringValue
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream
AnalyticsValue.AbstractAnalyticsValue
AnalyticsValueStream.ExpressionType
Constructor and Description |
---|
AbstractIntValue() |
Modifier and Type | Method and Description |
---|---|
double |
getDouble()
Get the double representation of the current value.
|
float |
getFloat()
Get the float representation of the current value.
|
long |
getLong()
Get the long representation of the current value.
|
Object |
getObject()
Get the object representation of the current value.
|
ExpressionComparator<Integer> |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists
createExpressionString, determineMappingPhase, getExpressionStr, getExpressionType, getName
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 FloatValue
public double getDouble()
DoubleValue
NOTE: The value returned is not valid unless calling AnalyticsValue.exists()
afterwards returns TRUE
.
getDouble
in interface DoubleValue
public String getString()
StringValue
NOTE: The value returned is not valid unless calling AnalyticsValue.exists()
afterwards returns TRUE
.
getString
in interface StringValue
public Object getObject()
AnalyticsValue
getObject
in interface AnalyticsValue
public void streamInts(IntConsumer cons)
IntValueStream
streamInts
in interface IntValueStream
cons
- The consumer to accept the valuespublic void streamLongs(LongConsumer cons)
LongValueStream
streamLongs
in interface LongValueStream
cons
- The consumer to accept the valuespublic void streamFloats(FloatConsumer cons)
FloatValueStream
streamFloats
in interface FloatValueStream
cons
- The consumer to accept the valuespublic void streamDoubles(DoubleConsumer cons)
DoubleValueStream
streamDoubles
in interface DoubleValueStream
cons
- The consumer to accept the valuespublic void streamStrings(Consumer<String> cons)
StringValueStream
streamStrings
in interface StringValueStream
cons
- The consumer to accept the valuespublic void streamObjects(Consumer<Object> cons)
AnalyticsValueStream
streamObjects
in interface AnalyticsValueStream
cons
- The consumer to accept the valuespublic ExpressionComparator<Integer> getObjectComparator(String expression)
ComparableValue
getObjectComparator
in interface ComparableValue
expression
- the name of the expression in the results arrayCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.