public abstract static class StringValue.AbstractStringValue extends Object implements StringValue.CastingStringValue
StringValue.CastingStringValue
that automatically casts to all types if StringValue.getString()
and AnalyticsValue.exists()
are implemented.StringValue.AbstractStringValue, StringValue.CastingStringValue
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream
AnalyticsValue.AbstractAnalyticsValue
AnalyticsValueStream.ExpressionType
Constructor and Description |
---|
AbstractStringValue() |
Modifier and Type | Method and Description |
---|---|
String |
getObject()
Get the object representation of the current value.
|
ExpressionComparator<String> |
getObjectComparator(String expression)
Create an entry comparator used to sort the facet-value buckets of a facet.
|
void |
streamObjects(Consumer<Object> func)
Stream the object representations of all current values, if any exist.
|
void |
streamStrings(Consumer<String> func)
Stream the String representations of all current values, if any exist.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getString
exists
createExpressionString, determineMappingPhase, getExpressionStr, getExpressionType, getName
public String getObject()
AnalyticsValue
getObject
in interface AnalyticsValue
public void streamStrings(Consumer<String> func)
StringValueStream
streamStrings
in interface StringValueStream
func
- The consumer to accept the valuespublic void streamObjects(Consumer<Object> func)
AnalyticsValueStream
streamObjects
in interface AnalyticsValueStream
func
- The consumer to accept the valuespublic ExpressionComparator<String> 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.