Class Data
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.Data
The entries that a read or a catalog produced, in definition order (§3.1).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the entries, in definition order.@Nullable ValueFinds an entry.<V extends @Nullable Object>
VGets an entry through its handle, as the Java type that the handle promises:longfor anIntField<Long>,List<long[]>for anIntField<List<long[]>>, and null for an absent entry of an optional handle.Gets an entry.toDzn()Returns the dzn document (appendix B), which is empty for data without entries.toJson()Returns the canonical data document (§3.3), with its final newline.
-
Method Details
-
entries
Returns the entries, in definition order.- Returns:
- the entries, in definition order
-
find
-
get
Gets an entry.- Parameters:
name- the name of the entry- Returns:
- its value
- Throws:
IllegalStateException- if there is no such entry
-
get
Gets an entry through its handle, as the Java type that the handle promises:longfor anIntField<Long>,List<long[]>for anIntField<List<long[]>>, and null for an absent entry of an optional handle.- Type Parameters:
V- the type of the entry's value- Parameters:
field- the handle of the entry- Returns:
- its value
- Throws:
IllegalStateException- if the entry is missing, or has another type or depth than the handle promises
-
toJson
Returns the canonical data document (§3.3), with its final newline.- Returns:
- the canonical data document (§3.3), with its final newline
-
toDzn
Returns the dzn document (appendix B), which is empty for data without entries.- Returns:
- the dzn document (appendix B), which is empty for data without entries
-