Class IntField<V extends @Nullable Object>
Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.
java.lang.Object
dev.gecode.iris.Field<V>
dev.gecode.iris.build.IntField<V>
- Type Parameters:
V- the Java type of the entry's value
- All Implemented Interfaces:
Domain<IntExpr>, Expr, IntegralExpr, IntExpr, NumericExpr
A handle of an integer entry. In a builder it is an expression; after reading,
data.get(handle) returns the entry as V.
The factories such as Iris.int0(String) make handles that any builder may use: the first use
in a builder declares the name with the handle's type, depth and presence, and Builder.build() checks every definition against them.
-
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Expr
dynamic, get, get, get, get, getModifier and TypeMethodDescriptiondefault DynExprdynamic()Returns this expression with no static type, which every method accepts.default DynExprReturnsthis.name, the field of the record this selects.default FloatExprget(FloatField<?> field) Returnsthis.name, the field of the record this selects.default IntExprReturnsthis.name, the field of the record this selects.default NumExprReturnsthis.name, the field of the record this selects.default StringExprget(StringField<?> field) Returnsthis.name, the field of the record this selects.Methods inherited from interface IntegralExpr
and, and, div, div, minus, minus, mod, mod, not, or, or, plus, plus, pow, pow, times, timesModifier and TypeMethodDescriptiondefault IntExprand(long other) Returnsthis && other.default IntExprand(IntegralExpr other) Returnsthis && other.default IntExprdiv(long other) Returnsthis / other, rounding toward zero.default IntExprdiv(IntegralExpr other) Returnsthis / other, rounding toward zero.default IntExprminus(long other) Returnsthis - other.default IntExprminus(IntegralExpr other) Returnsthis - other.default IntExprmod(long other) Returnsthis % other, which has the sign ofthis.default IntExprmod(IntegralExpr other) Returnsthis % other, which has the sign ofthis.default IntExprnot()Returns!this.default IntExpror(long other) Returnsthis || other.default IntExpror(IntegralExpr other) Returnsthis || other.default IntExprplus(long other) Returnsthis + other.default IntExprplus(IntegralExpr other) Returnsthis + other.default IntExprpow(long other) Returnsthis ^ other.default IntExprpow(IntegralExpr other) Returnsthis ^ other.default IntExprtimes(long other) Returnsthis * other.default IntExprtimes(IntegralExpr other) Returnsthis * other.Methods inherited from interface NumericExpr
eq, eq, eq, ge, ge, ge, gt, gt, gt, le, le, le, lt, lt, lt, ne, ne, neModifier and TypeMethodDescriptiondefault IntExpreq(double other) Returnsthis == other.default IntExpreq(long other) Returnsthis == other.default IntExpreq(NumericExpr other) Returnsthis == other.default IntExprge(double other) Returnsthis >= other.default IntExprge(long other) Returnsthis >= other.default IntExprge(NumericExpr other) Returnsthis >= other.default IntExprgt(double other) Returnsthis > other.default IntExprgt(long other) Returnsthis > other.default IntExprgt(NumericExpr other) Returnsthis > other.default IntExprle(double other) Returnsthis <= other.default IntExprle(long other) Returnsthis <= other.default IntExprle(NumericExpr other) Returnsthis <= other.default IntExprlt(double other) Returnsthis < other.default IntExprlt(long other) Returnsthis < other.default IntExprlt(NumericExpr other) Returnsthis < other.default IntExprne(double other) Returnsthis != other.default IntExprne(long other) Returnsthis != other.default IntExprne(NumericExpr other) Returnsthis != other.
-
Method Details
-
optional
Returns this handle for an entry that may be absent, for whichgetreturns null.- Returns:
- this handle for an entry that may be absent, for which
getreturns null - Throws:
IllegalStateException- for a handle fromforwardor a definition, whose presence its builder fixed
-
readFrom
Description copied from class:FieldReads the entry of this handle fromdata. -
toString
-