Class BooleanLiteral
- java.lang.Object
-
- com.apple.foundationdb.relational.api.fluentsql.expression.BooleanLiteral
-
- All Implemented Interfaces:
BooleanExpressionTrait
,ComparableExpressionTrait<DataType.BooleanType,Expression<DataType.BooleanType>>
,Expression<DataType.BooleanType>
,Literal<java.lang.Boolean,DataType.BooleanType>
,ScalarExpression<DataType.BooleanType>
@Immutable @API(EXPERIMENTAL) public final class BooleanLiteral extends java.lang.Object implements Literal<java.lang.Boolean,DataType.BooleanType>, BooleanExpressionTrait
This represents a boolean literal.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(FluentVisitor<R,C> visitor, C context)
boolean
equals(java.lang.Object o)
static BooleanLiteral
falseLiteral()
DataType.BooleanType
getType()
java.lang.Boolean
getValue()
int
hashCode()
static BooleanLiteral
nullLiteral()
java.lang.String
toString()
static BooleanLiteral
trueLiteral()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.BooleanExpressionTrait
and, nested, not, or
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ComparableExpressionTrait
greaterThan, greaterThanOrEquals, greatest, isEqualTo, lessThan, lessThanOrEqual, notEquals
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ScalarExpression
isNotNull, isNull
-
-
-
-
Method Detail
-
accept
@Nullable public <R,C> R accept(@Nonnull FluentVisitor<R,C> visitor, @Nonnull C context)
- Specified by:
accept
in interfaceExpression<DataType.BooleanType>
-
getValue
@Nullable public java.lang.Boolean getValue()
- Specified by:
getValue
in interfaceLiteral<java.lang.Boolean,DataType.BooleanType>
-
trueLiteral
@Nonnull public static BooleanLiteral trueLiteral()
-
falseLiteral
@Nonnull public static BooleanLiteral falseLiteral()
-
nullLiteral
@Nonnull public static BooleanLiteral nullLiteral()
-
getType
@Nonnull public DataType.BooleanType getType()
- Specified by:
getType
in interfaceComparableExpressionTrait<DataType.BooleanType,Expression<DataType.BooleanType>>
- Specified by:
getType
in interfaceExpression<DataType.BooleanType>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-