T - Collection elements typepublic interface CollectionConstantExpression<T> extends ConstantConverterExpression<Collection<T>,T>
ConstantConverterExpression with a Collection value type.Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException| Modifier and Type | Method and Description |
|---|---|
static <T> CollectionConstantExpression<T> |
create(Collection<? extends T> values)
Create a
CollectionConstantExpression which represents a collection of constant values. |
static <T> CollectionConstantExpression<T> |
create(T... values)
Create a
CollectionConstantExpression which represents a collection of constant values. |
static <T> CollectionConstantExpression<T> |
create(TypedExpression<T> expression,
Collection<? extends T> values)
Create a
CollectionConstantExpression which represents a collection of constant values, using given
expression to inherit an ExpressionValueConverter, if available. |
static <T> CollectionConstantExpression<T> |
create(TypedExpression<T> expression,
T... values)
Create a
CollectionConstantExpression which represents a collection of constant values, using given
expression to inherit an ExpressionValueConverter, if available. |
Collection<?> |
getModelValue()
Get the model data type value, using the
ExpressionValueConverter to convert constant expression value,
if available. |
default boolean |
hasValues()
Get whether the
Collection expression value is not null or empty. |
create, getValuegetExpressionValueConverter, getModelType, getModelValuegetTemporalType, getType, isCollectionExpression, isConverterExpressionvalidatedefault boolean hasValues()
Collection expression value is not null or empty.true if the expression value is null or empty, false otherwiseCollection<?> getModelValue()
ConstantConverterExpressionExpressionValueConverter to convert constant expression value,
if available. If an ExpressionValueConverter is not available, the original expression value is returned.getModelValue in interface ConstantConverterExpression<Collection<T>,T>ExpressionValueConverter is available, otherwise
ConstantConverterExpression.getValue() is returned.static <T> CollectionConstantExpression<T> create(Collection<? extends T> values)
CollectionConstantExpression which represents a collection of constant values.create in interface ConstantConverterExpression<Collection<T>,T>T - Expression typevalues - Expression values (not null)@SafeVarargs static <T> CollectionConstantExpression<T> create(T... values)
CollectionConstantExpression which represents a collection of constant values.create in interface ConstantConverterExpression<Collection<T>,T>T - Expression typevalues - Expression values (not null)static <T> CollectionConstantExpression<T> create(TypedExpression<T> expression, Collection<? extends T> values)
CollectionConstantExpression which represents a collection of constant values, using given
expression to inherit an ExpressionValueConverter, if available.create in interface ConstantConverterExpression<Collection<T>,T>T - Expression typeexpression - Expression form which to inherit an ExpressionValueConverter, if availablevalues - Expression values (not null)@SafeVarargs static <T> CollectionConstantExpression<T> create(TypedExpression<T> expression, T... values)
CollectionConstantExpression which represents a collection of constant values, using given
expression to inherit an ExpressionValueConverter, if available.create in interface ConstantConverterExpression<Collection<T>,T>T - Expression typeexpression - Expression form which to inherit an ExpressionValueConverter, if availablevalues - Expression values (not null)Copyright © 2019 The Holon Platform. All rights reserved.