Commit b80e750c authored by Daniel Le Berre's avatar Daniel Le Berre
Browse files

Added optional setId() to Constr.

parent dbf63dc6
......@@ -337,9 +337,21 @@ public interface Constr extends IConstr {
* @return a unique integral id for the constraint.
* @throws UnsupportedOperationException
* if no such identifier is available
* @since 2.3.6
* @since 3.0
*/
default int getId() {
throw new UnsupportedOperationException();
}
/**
* Allow the user to give a specific id to the constraint.
*
* The constraint may ignore it.
*
* @param nbConstraintsRead
* @since 3.0
*/
default void setId(int nbConstraintsRead) {
// do nothing
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment