Skip to content

Commit 282e895

Browse files
Minor cleanups and usability improvements
1 parent 973de33 commit 282e895

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/scala/com/decisionbrain/cplex/cp/CpModel.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import ilog.cp.IloCP
1818
*
1919
* @param name is the name of the constraint programming model
2020
*/
21-
case class CpModel(name: String=null) extends Modeler {
21+
class CpModel(val name: String=null) extends Modeler {
2222

2323
val cp: IloCP = {
2424
val iloCP = new IloCP()

src/main/scala/com/decisionbrain/cplex/cp/IntervalVar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ilog.concert._
1717
*/
1818
class IntervalVar(v: IloIntervalVar)(implicit model: CpModel) extends Addable {
1919

20-
def canEqual(a: Any) = a.isInstanceOf[IntervalVar]
20+
def canEqual(a: Any): Boolean = a.isInstanceOf[IntervalVar]
2121
override def equals(that: scala.Any): Boolean = {
2222
that match {
2323
case that: IntervalVar => that.canEqual(this) && this.hashCode() == that.hashCode()

src/main/scala/com/decisionbrain/cplex/mp/MpModel.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import ilog.cplex.{IloCplex, IloCplexMultiCriterionExpr}
2323
2424
* @param name is the name of the model
2525
*/
26-
case class MpModel(name: String=null) extends Modeler {
26+
class MpModel(val name: String=null) extends Modeler {
2727

2828
val cplex: IloCplex = {
2929
val iloCplex = new IloCplex()

0 commit comments

Comments
 (0)