T
- the input entity typeE
- the enum typepublic interface ToEnumOrThrow<T,E extends Enum<E>> extends OrElseThrowExpression<T,ToEnumNullable<T,E>>, ToEnum<T,E>
NonNullableExpression
for Enum
values where a
NullPointerException
is thrown if the original expression returns
null
.NonNullableExpression.NullStrategy
Modifier and Type | Method and Description |
---|---|
default Class<E> |
enumClass()
Returns the
class of the enum that this expression returns. |
nullStrategy
innerNullable
expressionType
apply, asName, asOrdinal, compare, compose, expressionType, hash, map, of
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Copyright © 2018 Speedment, Inc.. All rights reserved.